From: Jens Axboe Date: Mon, 6 Apr 2009 12:48:08 +0000 (+0200) Subject: block: switch sync_dirty_buffer() over to WRITE_SYNC X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1aa2a7cc6fd7b5c86681a6ae9dfd1072c261a435;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Linus Torvalds --- 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) if (test_clear_buffer_dirty(bh)) { get_bh(bh); bh->b_end_io = end_buffer_write_sync; - ret = submit_bh(WRITE, bh); + ret = submit_bh(WRITE_SYNC, bh); wait_on_buffer(bh); if (buffer_eopnotsupp(bh)) { clear_buffer_eopnotsupp(bh);