[XFS] pv 955157, rv bnaujok - break the loop on EFAULT formatter() error
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>
This commit is contained in:
parent
22de606a0b
commit
e132f54ce8
|
@ -635,13 +635,13 @@ xfs_bulkstat(
|
||||||
ubleft, private_data,
|
ubleft, private_data,
|
||||||
bno, &ubused, dip, &fmterror);
|
bno, &ubused, dip, &fmterror);
|
||||||
if (fmterror == BULKSTAT_RV_NOTHING) {
|
if (fmterror == BULKSTAT_RV_NOTHING) {
|
||||||
if (error == ENOMEM)
|
if (error == EFAULT) {
|
||||||
ubleft = 0;
|
|
||||||
else if (error) {
|
|
||||||
ubleft = 0;
|
ubleft = 0;
|
||||||
rval = error;
|
rval = error;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
else if (error == ENOMEM)
|
||||||
|
ubleft = 0;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (fmterror == BULKSTAT_RV_GIVEUP) {
|
if (fmterror == BULKSTAT_RV_GIVEUP) {
|
||||||
|
|
Loading…
Reference in New Issue