xfs: remove buffers from the delwri list in xfs_buf_stale
authorChristoph Hellwig <hch@infradead.org>
Mon, 10 Oct 2011 16:52:47 +0000 (16:52 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 12 Oct 2011 02:15:10 +0000 (21:15 -0500)
commitaf5c4bee499eb68bc36ca046030394d82d0e3669
tree4d015bdd36d9c424e04c8aaf8050dccb79cd7c31
parentc867cb61641751fd3d86350232d64ae2a10137d4
xfs: remove buffers from the delwri list in xfs_buf_stale

For each call to xfs_buf_stale we call xfs_buf_delwri_dequeue either
directly before or after it, or are guaranteed by the surrounding
conditionals that we are never called on delwri buffers.  Simply
this situation by moving the call to xfs_buf_delwri_dequeue into
xfs_buf_stale.

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_attr.c
fs/xfs/xfs_buf.c
fs/xfs/xfs_buf_item.c
fs/xfs/xfs_rw.c
fs/xfs/xfs_trans_buf.c