]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: fix ->write_inode return values
authorChristoph Hellwig <hch@infradead.org>
Sat, 19 Nov 2011 18:13:39 +0000 (13:13 -0500)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:19:21 +0000 (11:19 -0800)
commit37a19faccb82771ea9a1dcf9e3da6688e147bae6
treec7bea5442e66936d0fda4cf92bf14d0c2835a796
parent27c14895724e4a4dbbde14b996a926dc3063d0c6
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