xfs: do not write the buffer from xfs_iflush
authorChristoph Hellwig <hch@infradead.org>
Mon, 23 Apr 2012 05:58:36 +0000 (15:58 +1000)
committerBen Myers <bpm@sgi.com>
Mon, 14 May 2012 21:20:28 +0000 (16:20 -0500)
commit4c46819a8097a75d3b378c5e56d2bcf47bb7408d
tree031f84bd94f044218d43ef3d11f90df0480513c6
parent8a48088f6439249019b5e17f6391e710656879d9
xfs: do not write the buffer from xfs_iflush

Instead of writing the buffer directly from inside xfs_iflush return it to
the caller and let the caller decide what to do with the buffer.  Also
remove the pincount check in xfs_iflush that all non-blocking callers already
implement and the now unused flags parameter.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.h
fs/xfs/xfs_inode_item.c
fs/xfs/xfs_sync.c