xfs: do not write the buffer from xfs_qm_dqflush
authorChristoph Hellwig <hch@infradead.org>
Mon, 23 Apr 2012 05:58:37 +0000 (15:58 +1000)
committerBen Myers <bpm@sgi.com>
Mon, 14 May 2012 21:20:29 +0000 (16:20 -0500)
commitfe7257fd4b8ae9a3e354d9edb61890973e373ef0
tree471b9ecc1cb21207cb95291d1ec5b81c393b060f
parent4c46819a8097a75d3b378c5e56d2bcf47bb7408d
xfs: do not write the buffer from xfs_qm_dqflush

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

[ Dave Chinner: fixed build error cause by missing '{'. ]

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_dquot.c
fs/xfs/xfs_dquot.h
fs/xfs/xfs_dquot_item.c
fs/xfs/xfs_qm.c