]> err.no Git - linux-2.6/commitdiff
[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 2e2e275c786f2e98f617ef7d720e1b0b617a4643..0da1d6b081e79367e75bc1912916a7005f360924 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