]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
jbd2: use WRITE_SYNC_PLUG instead of WRITE_SYNC
authorJens Axboe <jens.axboe@oracle.com>
Mon, 6 Apr 2009 12:48:05 +0000 (14:48 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 6 Apr 2009 15:04:54 +0000 (08:04 -0700)
commit4194b1eaf18ddc3eee9597e8800b6d2ffdfd3614
tree34083152f17c6dbf61729a2194658ebcc041a62c
parent6c4bac6b3351fd278dc3537dae42f88f733ff12e
jbd2: use WRITE_SYNC_PLUG instead of WRITE_SYNC

When you are going to be submitting several sync writes, we want to
give the IO scheduler a chance to merge some of them. Instead of
using the implicitly unplugging WRITE_SYNC variant, use WRITE_SYNC_PLUG
and rely on sync_buffer() doing the unplug when someone does a
wait_on_buffer()/lock_buffer().

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/jbd2/commit.c