summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fs/xfs/xfs_itable.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_itable.c b/fs/xfs/xfs_itable.c
index b9edbc65f36..e338d6cf027 100644
--- a/fs/xfs/xfs_itable.c
+++ b/fs/xfs/xfs_itable.c
@@ -635,13 +635,13 @@ xfs_bulkstat(
ubleft, private_data,
bno, &ubused, dip, &fmterror);
if (fmterror == BULKSTAT_RV_NOTHING) {
- if (error == ENOMEM)
- ubleft = 0;
- else if (error) {
+ if (error == EFAULT) {
ubleft = 0;
rval = error;
break;
}
+ else if (error == ENOMEM)
+ ubleft = 0;
continue;
}
if (fmterror == BULKSTAT_RV_GIVEUP) {