summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_itable.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_itable.c')
-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 b9edbc65f364..e338d6cf0273 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) {
OpenPOWER on IntegriCloud