diff options
author | Konstantin Khlebnikov <khlebnikov@yandex-team.ru> | 2020-05-27 08:24:16 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-05-27 14:21:23 +0300 |
commit | b5af37ab3a2b143e278340d2c6fa5790d53817e7 (patch) | |
tree | ff8c29b292e97a0ae4ceaa79e37bdb0bb4f8c8d7 /init/do_mounts_md.c | |
parent | b9c54f5660e7eff10dd2ddd1eae554573105b15d (diff) | |
download | linux-b5af37ab3a2b143e278340d2c6fa5790d53817e7.tar.xz |
block: add a blk_account_io_merge_bio helper
Move the non-"new_io" branch of blk_account_io_start() into separate
function. Fix merge accounting for discards (they were counted as write
merges).
The new blk_account_io_merge_bio() doesn't call update_io_ticks() unlike
blk_account_io_start(), as there is no reason for that.
[hch: rebased]
Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'init/do_mounts_md.c')
0 files changed, 0 insertions, 0 deletions