]> git.neil.brown.name Git - history.git/commitdiff
[XFS] Fix up write_inode return type to use the right signedness.
authorNathan Scott <nathans@sgi.com>
Wed, 13 Oct 2004 23:07:07 +0000 (09:07 +1000)
committerNathan Scott <nathans@sgi.com>
Wed, 13 Oct 2004 23:07:07 +0000 (09:07 +1000)
SGI Modid: xfs-linux:xfs-kern:19632a
Signed-off-by: Nathan Scott <nathans@sgi.com>
fs/xfs/linux-2.6/xfs_super.c

index b59d034a8d124682af7572f996e09a70b5f411e6..20bfe7228497838275fd5cd816bb26bdee22261e 100644 (file)
@@ -339,16 +339,16 @@ linvfs_write_inode(
        int                     sync)
 {
        vnode_t                 *vp = LINVFS_GET_VP(inode);
-       int                     error, flags = FLUSH_INODE;
+       int                     error = 0, flags = FLUSH_INODE;
 
-       error = 0;
        if (vp) {
                vn_trace_entry(vp, __FUNCTION__, (inst_t *)__return_address);
                if (sync)
                        flags |= FLUSH_SYNC;
                VOP_IFLUSH(vp, flags, error);
        }
-       return error;
+
+       return -error;
 }
 
 STATIC void