block: introduce part_[begin|end]_io_acct
authorSong Liu <songliubraving@fb.com>
Mon, 31 Aug 2020 22:27:23 +0000 (15:27 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 11 Sep 2020 22:41:30 +0000 (16:41 -0600)
commit7b26410b05f8c262688de8a689ba8e5d0c3cff01
tree2e5f62110986ddd52f8fcce4c00f7d5fe2c466fb
parent285008501c65a3fcee05d2c2c26cbf629ceff2f0
block: introduce part_[begin|end]_io_acct

These functions can be used to enable iostat for partitions on devices
like md, bcache.

Signed-off-by: Song Liu <songliubraving@fb.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
include/linux/blkdev.h