[XFS] getattr can return an error code, so propogate any from lower
authorNathan Scott <nathans@sgi.com>
Fri, 9 Jun 2006 04:58:20 +0000 (14:58 +1000)
committerNathan Scott <nathans@sgi.com>
Fri, 9 Jun 2006 04:58:20 +0000 (14:58 +1000)
layers.

SGI-PV: 904196
SGI-Modid: xfs-linux-melb:xfs-kern:26095a

Signed-off-by: Nathan Scott <nathans@sgi.com>
fs/xfs/linux-2.6/xfs_iops.c

index 2e2e275..0da1d6b 100644 (file)
@@ -643,7 +643,7 @@ xfs_vn_getattr(
                error = vn_revalidate(vp);
        if (!error)
                generic_fillattr(inode, stat);
-       return 0;
+       return -error;
 }
 
 STATIC int