diff options
| author | Jens Axboe <axboe@kernel.dk> | 2024-10-03 07:29:49 -0600 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2024-10-22 08:14:56 -0600 |
| commit | e3569ecae44daa6d88ac1bb0c6b976c298eff966 (patch) | |
| tree | 6b9e517da02a549dd9fd5ce66d3fa31c2cafedf2 /block/blk.h | |
| parent | fd0a63bcda40c09463f31b9401dbb0cb01c51674 (diff) | |
| download | linux-e3569ecae44daa6d88ac1bb0c6b976c298eff966.tar.gz linux-e3569ecae44daa6d88ac1bb0c6b976c298eff966.tar.bz2 linux-e3569ecae44daa6d88ac1bb0c6b976c298eff966.zip | |
block: kill blk_do_io_stat() helper
It's now just checking whether or not RQF_IO_STAT is set, so let's get
rid of it and just open-code the specific flag that is being checked.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk.h')
| -rw-r--r-- | block/blk.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/block/blk.h b/block/blk.h index 84178e535533..ea926d685e92 100644 --- a/block/blk.h +++ b/block/blk.h @@ -405,17 +405,6 @@ void blk_apply_bdi_limits(struct backing_dev_info *bdi, struct queue_limits *lim); int blk_dev_init(void); -/* - * Contribute to IO statistics IFF: - * - * a) it's attached to a gendisk, and - * b) the queue had IO stats enabled when this request was started - */ -static inline bool blk_do_io_stat(struct request *rq) -{ - return rq->rq_flags & RQF_IO_STAT; -} - void update_io_ticks(struct block_device *part, unsigned long now, bool end); unsigned int part_in_flight(struct block_device *part); |
