]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/xfs/xfs_iwalk.c
Merge tag 'samsung-dt-5.5-2' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk...
[linux.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,