]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xfs: call xfs_buf_delwri_queue directly
authorChristoph Hellwig <hch@infradead.org>
Tue, 23 Aug 2011 08:28:06 +0000 (08:28 +0000)
committerAlex Elder <aelder@sgi.com>
Thu, 1 Sep 2011 15:50:23 +0000 (10:50 -0500)
commitef216bdc80eb74c5d30cff8dc77df61ff071edc3
tree8798bbfa6891d89756f47eb5ea960bb0ede6291b
parent9b28cfc60532bbd20e157f17c13dcd6ace27867b
xfs: call xfs_buf_delwri_queue directly

Unify the ways we add buffers to the delwri queue by always calling
xfs_buf_delwri_queue directly.  The xfs_bdwrite functions is removed and
opencoded in its callers, and the two places setting XBF_DELWRI while a
buffer is locked and expecting xfs_buf_unlock to pick it up are converted
to call xfs_buf_delwri_queue directly, too.  Also replace the
XFS_BUF_UNDELAYWRITE macro with direct calls to xfs_buf_delwri_dequeue
to make the explicit queuing/dequeuing more obvious.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
12 files changed:
fs/xfs/xfs_attr.c
fs/xfs/xfs_buf.c
fs/xfs/xfs_buf.h
fs/xfs/xfs_buf_item.c
fs/xfs/xfs_dquot.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_log_recover.c
fs/xfs/xfs_mount.c
fs/xfs/xfs_qm.c
fs/xfs/xfs_rw.c
fs/xfs/xfs_trace.h
fs/xfs/xfs_trans_buf.c