]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[BLOCK] Unify the seperate read/write io stat fields into arrays
authorJens Axboe <axboe@suse.de>
Tue, 1 Nov 2005 08:26:16 +0000 (09:26 +0100)
committerJens Axboe <axboe@suse.de>
Tue, 1 Nov 2005 08:26:16 +0000 (09:26 +0100)
commita362357b6cd62643d4dda3b152639303d78473da
treefe4ce823e638ded151edcb142f28a240860f0d33
parentd72d904a5367ad4ca3f2c9a2ce8c3a68f0b28bf0
[BLOCK] Unify the seperate read/write io stat fields into arrays

Instead of having ->read_sectors and ->write_sectors, combine the two
into ->sectors[2] and similar for the other fields. This saves a branch
several places in the io path, since we don't have to care for what the
actual io direction is. On my x86-64 box, that's 200 bytes less text in
just the core (not counting the various drivers).

Signed-off-by: Jens Axboe <axboe@suse.de>
12 files changed:
drivers/block/genhd.c
drivers/block/ll_rw_blk.c
drivers/md/linear.c
drivers/md/md.c
drivers/md/multipath.c
drivers/md/raid0.c
drivers/md/raid1.c
drivers/md/raid10.c
drivers/md/raid5.c
drivers/md/raid6main.c
fs/partitions/check.c
include/linux/genhd.h