summaryrefslogtreecommitdiff
path: root/block/blk-mq.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2017-04-21 07:55:42 -0600
committerJens Axboe <axboe@fb.com>2017-04-21 07:56:23 -0600
commit99c749a4c4f4ea2c9eee01f81f79bdbf26c3914e (patch)
tree71cdbf2a4d9bcaeb26487403f88a66011f3ecfe9 /block/blk-mq.c
parent1cc1f17aab7e596d0a7373fc1ed11dbddfa82bc9 (diff)
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-mq.c')
-rw-r--r--block/blk-mq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index fa7d86f59687..0b2f60407748 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -46,7 +46,7 @@ static int blk_mq_poll_stats_bkt(const struct request *rq)
{
int ddir, bytes, bucket;
- ddir = blk_stat_rq_ddir(rq);
+ ddir = rq_data_dir(rq);
bytes = blk_rq_bytes(rq);
bucket = ddir + 2*(ilog2(bytes) - 9);