xfs: improve ioend error handling
authorChristoph Hellwig <hch@infradead.org>
Wed, 24 Aug 2011 05:59:25 +0000 (05:59 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 12 Oct 2011 02:15:01 +0000 (21:15 -0500)
commit04f658ee229f60dbb9a0dc2f3d6871b12b758051
treeeee3e17cf4af0f5c6cbb8393f247dfb6d823615a
parentc58cb165bd44de8aaee9755a144136ae743be116
xfs: improve ioend error handling

Return unwritten extent conversion errors to aio_complete.

Skip both unwritten extent conversion and size updates if we had an
I/O error or the filesystem has been shut down.

Return -EIO to the aio/buffer completion handlers in case of a
forced shutdown.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_aops.c