Merge tag 'xfs-6.9-merge-8' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux
[sfrench/cifs-2.6.git] / fs / xfs / libxfs / xfs_dir2_leaf.c
index cb9e950a911d8afb89792477024a67989050aa9d..08dda5ce9d91c4f0c14f7e333c5978fa12216456 100644 (file)
@@ -19,6 +19,7 @@
 #include "xfs_trace.h"
 #include "xfs_trans.h"
 #include "xfs_buf_item.h"
+#include "xfs_health.h"
 
 /*
  * Local function declarations.
@@ -1393,8 +1394,10 @@ xfs_dir2_leaf_removename(
        bestsp = xfs_dir2_leaf_bests_p(ltp);
        if (be16_to_cpu(bestsp[db]) != oldbest) {
                xfs_buf_mark_corrupt(lbp);
+               xfs_da_mark_sick(args);
                return -EFSCORRUPTED;
        }
+
        /*
         * Mark the former data entry unused.
         */