]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: enforce synchronous writes in xfs_bwrite
authorChristoph Hellwig <hch@infradead.org>
Fri, 12 Mar 2010 10:59:40 +0000 (10:59 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 19 May 2010 14:58:13 +0000 (09:58 -0500)
commit0118f98936e3b64342a11f35d7b216a20ad2ed21
tree05789fdea7c34b1b6f29151b6a13bd49f3c6fec9
parent1e50912ba118187ccb8d2e542467134d788a8985
xfs: enforce synchronous writes in xfs_bwrite

xfs_bwrite is used with the intention of synchronously writing out
buffers, but currently it does not actually clear the async flag if
that's left from previous writes but instead implements async
behaviour if it finds it.  Remove the code handling asynchronous
writes as we've got rid of those entirely outside of the log and
delwri buffers, and make sure that we clear the async and read flags
before writing the buffer.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/linux-2.6/xfs_buf.c
fs/xfs/linux-2.6/xfs_sync.c