aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_sync.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2010-03-12 05:59:40 -0500
committerAlex Elder <aelder@sgi.com>2010-05-19 10:58:13 -0400
commit8c38366f99f83a7fa441e0c0669fefc18615e005 (patch)
tree05789fdea7c34b1b6f29151b6a13bd49f3c6fec9 /fs/xfs/linux-2.6/xfs_sync.c
parentdf308bcfec27e0c6bc83715dfd417caff5c33f19 (diff)
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>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_sync.c')
-rw-r--r--fs/xfs/linux-2.6/xfs_sync.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/xfs/linux-2.6/xfs_sync.c b/fs/xfs/linux-2.6/xfs_sync.c
index 728db015f39..3884e20bc14 100644
--- a/fs/xfs/linux-2.6/xfs_sync.c
+++ b/fs/xfs/linux-2.6/xfs_sync.c
@@ -372,7 +372,6 @@ xfs_sync_fsdata(
372 if (XFS_BUF_ISPINNED(bp)) 372 if (XFS_BUF_ISPINNED(bp))
373 xfs_log_force(mp, 0); 373 xfs_log_force(mp, 0);
374 374
375 XFS_BUF_UNASYNC(bp);
376 return xfs_bwrite(mp, bp); 375 return xfs_bwrite(mp, bp);
377} 376}
378 377