xfs: cleanup xfs_file_aio_write
commitd060646436233912178e6b9e3a7f30a41214220f
authorChristoph Hellwig <hch@infradead.org>
Sun, 18 Dec 2011 20:00:14 +0000 (18 20:00 +0000)
committerBen Myers <bpm@sgi.com>
Tue, 17 Jan 2012 21:12:33 +0000 (17 15:12 -0600)
treea460c8e2d89cdcf08d574f497c421decf36fe018
parent5bf1f26227a59b9634e95eb3c7c012b766e5e6a0
xfs: cleanup xfs_file_aio_write

With all the size field updates out of the way xfs_file_aio_write can
be further simplified by pushing all iolock handling into
xfs_file_dio_aio_write and xfs_file_buffered_aio_write and using
the generic generic_write_sync helper for synchronous writes.

Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_file.c