Skip to content

Commit

Permalink
[XFS] pv 955157, rv bnaujok - break the loop on EFAULT formatter() error
Browse files Browse the repository at this point in the history
SGI-PV: 955157
SGI-Modid: xfs-linux-melb:xfs-kern:26869a

Signed-off-by: Vlad Apostolov <vapo@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
  • Loading branch information
Vlad Apostolov authored and Tim Shimmin committed Sep 28, 2006
1 parent 22de606 commit e132f54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs/xfs/xfs_itable.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e132f54

Please sign in to comment.