]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Tue, 11 Oct 2011 16:38:56 +0000 (11:38 -0500)
commit5ea31d2bf8827b8bfb9a2130c50916e7b687dabe
treea4d98da6e20bd9fea7f427d5debf10c0a9a0d98f
parent49cc0fe89077077b9ac94f1248fb5c37841a0435
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