Skip to content
Commit a362357b authored by Jens Axboe's avatar Jens Axboe
Browse files

[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: default avatarJens Axboe <axboe@suse.de>
parent d72d904a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment