Merge branch 'fscache-fixes' into for-next
[firefly-linux-kernel-4.4.55.git] / fs / xfs / xfs_itable.c
index 82e314258f739a1ff02d20f6c15c6aae5f593f2b..80429891dc9b59dcf893fc8cc4dad9fe85079c7b 100644 (file)
@@ -229,7 +229,7 @@ xfs_bulkstat_grab_ichunk(
        error = xfs_inobt_get_rec(cur, irec, &stat);
        if (error)
                return error;
-       XFS_WANT_CORRUPTED_RETURN(stat == 1);
+       XFS_WANT_CORRUPTED_RETURN(cur->bc_mp, stat == 1);
 
        /* Check if the record contains the inode in request */
        if (irec->ir_startino + XFS_INODES_PER_CHUNK <= agino) {