Skip to contentSkip to conversation

block: remove bio_start_io_acct_time

PATCH Applied Christoph Hellwig 2 participants 2 messages Oct 25, 2022 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: remove bio_start_io_acct_time

bio_start_io_acct_time is not actually used anywhere, so remove it.

---
 block/blk-core.c       | 12 ------------
 include/linux/blkdev.h |  1 -
 2 files changed, 13 deletions(-)
block/blk-core.c +0 -12
index 17667159482e0..5d50dd16e2a59 100644
@@ -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
include/linux/blkdev.h +0 -1
index 50e358a19d986..57ed49f20d2eb 100644
@@ -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);
Signature · 1 line
2.30.2
maintainer Applied
#1 lore raw
Quoted 3 lines · Christoph Hellwig

bio_start_io_acct_time is not actually used anywhere, so remove it.

Applied, thanks!

[1/1] block: remove bio_start_io_acct_time
(no commit info)

Best regards,

Signature · 1 line
Jens Axboe