diff options
author | Jens Axboe <axboe@fb.com> | 2017-04-21 09:55:42 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-21 09:56:23 -0400 |
commit | 99c749a4c4f4ea2c9eee01f81f79bdbf26c3914e (patch) | |
tree | 71cdbf2a4d9bcaeb26487403f88a66011f3ecfe9 /block/blk-wbt.c | |
parent | 1cc1f17aab7e596d0a7373fc1ed11dbddfa82bc9 (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-wbt.c')
-rw-r--r-- | block/blk-wbt.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/block/blk-wbt.c b/block/blk-wbt.c index 26e1bb617877..17676f4d7fd1 100644 --- a/block/blk-wbt.c +++ b/block/blk-wbt.c | |||
@@ -696,6 +696,11 @@ u64 wbt_default_latency_nsec(struct request_queue *q) | |||
696 | return 75000000ULL; | 696 | return 75000000ULL; |
697 | } | 697 | } |
698 | 698 | ||
699 | static int wbt_data_dir(const struct request *rq) | ||
700 | { | ||
701 | return rq_data_dir(rq); | ||
702 | } | ||
703 | |||
699 | int wbt_init(struct request_queue *q) | 704 | int wbt_init(struct request_queue *q) |
700 | { | 705 | { |
701 | struct rq_wb *rwb; | 706 | struct rq_wb *rwb; |
@@ -707,7 +712,7 @@ int wbt_init(struct request_queue *q) | |||
707 | if (!rwb) | 712 | if (!rwb) |
708 | return -ENOMEM; | 713 | return -ENOMEM; |
709 | 714 | ||
710 | rwb->cb = blk_stat_alloc_callback(wb_timer_fn, blk_stat_rq_ddir, 2, rwb); | 715 | rwb->cb = blk_stat_alloc_callback(wb_timer_fn, wbt_data_dir, 2, rwb); |
711 | if (!rwb->cb) { | 716 | if (!rwb->cb) { |
712 | kfree(rwb); | 717 | kfree(rwb); |
713 | return -ENOMEM; | 718 | return -ENOMEM; |