Merge tag 'docs-5.7-2' of git://git.lwn.net/linux
[linux-block.git] / fs / xfs / xfs_iwalk.c
index aa375cf53021ac3af4d07983fb25f56018a0db94..233dcc8784db0b69886c84b3071902fac9673e41 100644 (file)
@@ -298,7 +298,8 @@ xfs_iwalk_ag_start(
        error = xfs_inobt_get_rec(*curpp, irec, has_more);
        if (error)
                return error;
-       XFS_WANT_CORRUPTED_RETURN(mp, *has_more == 1);
+       if (XFS_IS_CORRUPT(mp, *has_more != 1))
+               return -EFSCORRUPTED;
 
        /*
         * If the LE lookup yielded an inobt record before the cursor position,