]> git.baikalelectronics.ru Git - kernel.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)
commitf5340ff22af542e061c60d7f71ddc71c6344fceb
tree34083152f17c6dbf61729a2194658ebcc041a62c
parent606c8191efe5291024a6aca74731266a7afa209d
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