]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
block: remove bio_start_io_acct_time
authorChristoph Hellwig <hch@lst.de>
Tue, 25 Oct 2022 15:59:16 +0000 (08:59 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 25 Oct 2022 18:08:31 +0000 (12:08 -0600)
bio_start_io_acct_time is not actually used anywhere, so remove it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20221025155916.270303-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
include/linux/blkdev.h

index 17667159482e0309d37c6784b7f3f8b4aac1a63c..5d50dd16e2a594e2e71f1d7a45456baadb5abb14 100644 (file)
@@ -945,18 +945,6 @@ unsigned long bdev_start_io_acct(struct block_device *bdev,
 }
 EXPORT_SYMBOL(bdev_start_io_acct);
 
-/**
- * bio_start_io_acct_time - start I/O accounting for bio based drivers
- * @bio:       bio to start account for
- * @start_time:        start time that should be passed back to bio_end_io_acct().
- */
-void bio_start_io_acct_time(struct bio *bio, unsigned long start_time)
-{
-       bdev_start_io_acct(bio->bi_bdev, bio_sectors(bio),
-                          bio_op(bio), start_time);
-}
-EXPORT_SYMBOL_GPL(bio_start_io_acct_time);
-
 /**
  * bio_start_io_acct - start I/O accounting for bio based drivers
  * @bio:       bio to start account for
index 50e358a19d98643b2bc927372cb2c46b6d4ca52c..57ed49f20d2eb867c0faad29ec1a998b2cc005b7 100644 (file)
@@ -1458,7 +1458,6 @@ unsigned long bdev_start_io_acct(struct block_device *bdev,
 void bdev_end_io_acct(struct block_device *bdev, enum req_op op,
                unsigned long start_time);
 
-void bio_start_io_acct_time(struct bio *bio, unsigned long start_time);
 unsigned long bio_start_io_acct(struct bio *bio);
 void bio_end_io_acct_remapped(struct bio *bio, unsigned long start_time,
                struct block_device *orig_bdev);