]> git.baikalelectronics.ru Git - kernel.git/commit
block: change exported IO accounting interface from gendisk to bdev
authorMing Lei <ming.lei@redhat.com>
Mon, 18 Apr 2022 02:27:13 +0000 (22:27 -0400)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 12:49:52 +0000 (06:49 -0600)
commitedceb7deb91693ecae3a20bd22cc3b554ba47574
tree5d5de09e6c2658660bec89985daee191f83e0528
parent2bd63249cac92777596347b0c29f8729e61cdeb6
block: change exported IO accounting interface from gendisk to bdev

Export IO accounting interfaces in terms of block_device now that
gendisk has become more internal to block core.

Rename __part_{start,end}_io_acct's first argument from part to bdev.
Rename __part_{start,end}_io_acct to bdev_{start,end}_io_acct and
export them.  Remove disk_{start,end}_io_acct and update caller (zram)
to use bdev_{start,end}_io_acct.

DM can now be updated to use bdev_{start,end}_io_acct.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Link: https://lore.kernel.org/r/20220418022733.56168-2-snitzer@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
drivers/block/zram/zram_drv.c
include/linux/blkdev.h