aboutsummaryrefslogtreecommitdiffstats
path: root/fs/buffer.c
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2009-04-06 08:48:08 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-04-06 11:04:54 -0400
commit1aa2a7cc6fd7b5c86681a6ae9dfd1072c261a435 (patch)
tree4910dbeec6f365b133249091af74e1a0db829f1f /fs/buffer.c
parentaeb6fafb8fa53266d70ca7474fcda2bdaf96524a (diff)
block: switch sync_dirty_buffer() over to WRITE_SYNC
We should now have the logic in place to handle this properly without regressing on the write performance, so re-enable the sync writes. Signed-off-by: Jens Axboe <jens.axboe@oracle.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/buffer.c')
-rw-r--r--fs/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/buffer.c b/fs/buffer.c
index 43afaa5d6901..6e35762b6169 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -3010,7 +3010,7 @@ int sync_dirty_buffer(struct buffer_head *bh)
3010 if (test_clear_buffer_dirty(bh)) { 3010 if (test_clear_buffer_dirty(bh)) {
3011 get_bh(bh); 3011 get_bh(bh);
3012 bh->b_end_io = end_buffer_write_sync; 3012 bh->b_end_io = end_buffer_write_sync;
3013 ret = submit_bh(WRITE, bh); 3013 ret = submit_bh(WRITE_SYNC, bh);
3014 wait_on_buffer(bh); 3014 wait_on_buffer(bh);
3015 if (buffer_eopnotsupp(bh)) { 3015 if (buffer_eopnotsupp(bh)) {
3016 clear_buffer_eopnotsupp(bh); 3016 clear_buffer_eopnotsupp(bh);