]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] elevator: move the backmerging logic into the elevator core
authorJens Axboe <axboe@suse.de>
Fri, 28 Jul 2006 07:23:08 +0000 (09:23 +0200)
committerJens Axboe <axboe@nelson.home.kernel.dk>
Sat, 30 Sep 2006 18:26:56 +0000 (20:26 +0200)
commit9817064b68fef7e4580c6df1ea597e106b9ff88b
tree76c27990626247613e9efa45b792d51ad79635d7
parent4aff5e2333c9a1609662f2091f55c3f6fffdad36
[PATCH] elevator: move the backmerging logic into the elevator core

Right now, every IO scheduler implements its own backmerging (except for
noop, which does no merging). That results in duplicated code for
essentially the same operation, which is never a good thing. This patch
moves the backmerging out of the io schedulers and into the elevator
core. We save 1.6kb of text and as a bonus get backmerging for noop as
well. Win-win!

Signed-off-by: Jens Axboe <axboe@suse.de>
block/as-iosched.c
block/cfq-iosched.c
block/deadline-iosched.c
block/elevator.c
block/ll_rw_blk.c
include/linux/blkdev.h
include/linux/elevator.h