]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
xfs: fix ->write_inode return values
authorChristoph Hellwig <hch@infradead.org>
Sat, 19 Nov 2011 18:13:39 +0000 (13:13 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 26 Nov 2011 17:10:07 +0000 (09:10 -0800)
commitae6c19cd6c32f88b2d8549984ff2a5fcdcc932b2
tree130f035ba9104d9316c3e7de73cc10e10810d940
parent7d7e5d33408819c084528dcff139fc4564c7bdda
xfs: fix ->write_inode return values

patch 58d84c4ee0389ddeb86238d5d8359a982c9f7a5b upstream.

Currently we always redirty an inode that was attempted to be written out
synchronously but has been cleaned by an AIL pushed internall, which is
rather bogus.  Fix that by doing the i_update_core check early on and
return 0 for it.  Also include async calls for it, as doing any work for
those is just as pointless.  While we're at it also fix the sign for the
EIO return in case of a filesystem shutdown, and fix the completely
non-sensical locking around xfs_log_inode.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/xfs/linux-2.6/xfs_super.c