diff options
Diffstat (limited to 'fs/xfs/xfs_itable.c')
-rw-r--r-- | fs/xfs/xfs_itable.c | 6 |
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( | |||
635 | ubleft, private_data, | 635 | ubleft, private_data, |
636 | bno, &ubused, dip, &fmterror); | 636 | bno, &ubused, dip, &fmterror); |
637 | if (fmterror == BULKSTAT_RV_NOTHING) { | 637 | if (fmterror == BULKSTAT_RV_NOTHING) { |
638 | if (error == ENOMEM) | 638 | if (error == EFAULT) { |
639 | ubleft = 0; | ||
640 | else if (error) { | ||
641 | ubleft = 0; | 639 | ubleft = 0; |
642 | rval = error; | 640 | rval = error; |
643 | break; | 641 | break; |
644 | } | 642 | } |
643 | else if (error == ENOMEM) | ||
644 | ubleft = 0; | ||
645 | continue; | 645 | continue; |
646 | } | 646 | } |
647 | if (fmterror == BULKSTAT_RV_GIVEUP) { | 647 | if (fmterror == BULKSTAT_RV_GIVEUP) { |