[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>
Showing
- drivers/block/genhd.c 14 additions, 15 deletionsdrivers/block/genhd.c
- drivers/block/ll_rw_blk.c 12 additions, 28 deletionsdrivers/block/ll_rw_blk.c
- drivers/md/linear.c 3 additions, 7 deletionsdrivers/md/linear.c
- drivers/md/md.c 2 additions, 2 deletionsdrivers/md/md.c
- drivers/md/multipath.c 3 additions, 7 deletionsdrivers/md/multipath.c
- drivers/md/raid0.c 3 additions, 7 deletionsdrivers/md/raid0.c
- drivers/md/raid1.c 4 additions, 8 deletionsdrivers/md/raid1.c
- drivers/md/raid10.c 4 additions, 8 deletionsdrivers/md/raid10.c
- drivers/md/raid5.c 3 additions, 7 deletionsdrivers/md/raid5.c
- drivers/md/raid6main.c 4 additions, 8 deletionsdrivers/md/raid6main.c
- fs/partitions/check.c 4 additions, 3 deletionsfs/partitions/check.c
- include/linux/genhd.h 5 additions, 5 deletionsinclude/linux/genhd.h
Loading
Please register or sign in to comment