xfs: wait for I/O completion when writing out pages in xfs_setattr_size
commit2b3ffd7eb7b4392e3657c5046b055ca9f1f7cf5e
authorChristoph Hellwig <hch@infradead.org>
Tue, 23 Aug 2011 08:28:12 +0000 (23 08:28 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 12 Oct 2011 02:15:00 +0000 (11 21:15 -0500)
treefae89c3a78eca1ea273eb239d967b0eae23c7a50
parentfc0063c4474599b7a066ba76b90902abe21bc675
xfs: wait for I/O completion when writing out pages in xfs_setattr_size

The current code relies on the xfs_ioend_wait call later on to make sure
all I/O actually has completed.  The xfs_ioend_wait call will go away soon,
so prepare for that by using the waiting filemap function.

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_iops.c