]> err.no Git - linux-2.6/commitdiff
[XFS] pv 955157, rv bnaujok - break the loop on EFAULT formatter() error
authorVlad Apostolov <vapo@sgi.com>
Thu, 28 Sep 2006 01:04:31 +0000 (11:04 +1000)
committerTim Shimmin <tes@sgi.com>
Thu, 28 Sep 2006 01:04:31 +0000 (11:04 +1000)
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>
fs/xfs/xfs_itable.c

index b9edbc65f3645d986655e3665e9b9012b41c29bf..e338d6cf02736fc74175ebad388aa9d4f83a482f 100644 (file)
@@ -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) {