diff options
author | Jens Axboe <axboe@fb.com> | 2017-04-21 15:55:42 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-21 15:56:23 +0200 |
commit | 99c749a4c4f4ea2c9eee01f81f79bdbf26c3914e (patch) | |
tree | 71cdbf2a4d9bcaeb26487403f88a66011f3ecfe9 /block/blk-stat.h | |
parent | nbd: set the max segments to USHRT_MAX (diff) | |
download | linux-99c749a4c4f4ea2c9eee01f81f79bdbf26c3914e.tar.xz linux-99c749a4c4f4ea2c9eee01f81f79bdbf26c3914e.zip |
blk-stat: kill blk_stat_rq_ddir()
No point in providing and exporting this helper. There's just
one (real) user of it, just use rq_data_dir().
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-stat.h')
-rw-r--r-- | block/blk-stat.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/block/blk-stat.h b/block/blk-stat.h index 622a62ce6213..2fb20d1a341a 100644 --- a/block/blk-stat.h +++ b/block/blk-stat.h @@ -112,17 +112,6 @@ static inline void blk_stat_set_issue(struct blk_issue_stat *stat, /* record time/size info in request but not add a callback */ void blk_stat_enable_accounting(struct request_queue *q); -/* - * blk_stat_rq_ddir() - Bucket callback function for the request data direction. - * @rq: Request. - * - * This is the same as rq_data_dir() but as a function so it can be used as - * @bucket_fn for blk_stat_alloc_callback(). - * - * Return: Data direction of the request, either READ or WRITE. - */ -int blk_stat_rq_ddir(const struct request *rq); - /** * blk_stat_alloc_callback() - Allocate a block statistics callback. * @timer_fn: Timer callback function. |