path: root/block/bfq-iosched.c
diff options
authorBart Van Assche <>2017-08-30 11:42:11 -0700
committerJens Axboe <>2017-09-01 13:56:42 -0600
commit12cd3a2fe3ba6d1a2cf007e4e8dcfbe66d3d0a28 (patch)
tree809bb43796ee19d397c227265767a34f7b5f01d7 /block/bfq-iosched.c
parent1530486cda2df87d66af8bd3aa069c12b6fada41 (diff)
bfq: Use icq_to_bic() consistently
Some code uses icq_to_bic() to convert an io_cq pointer to a bfq_io_cq pointer while other code uses a direct cast. Convert the code that uses a direct cast such that it uses icq_to_bic(). Acked-by: Paolo Valente <> Signed-off-by: Bart Van Assche <> Signed-off-by: Jens Axboe <>
Diffstat (limited to 'block/bfq-iosched.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c
index 7adde1b..fd09d4d 100644
--- a/block/bfq-iosched.c
+++ b/block/bfq-iosched.c
@@ -239,7 +239,7 @@ static int T_slow[2];
static int T_fast[2];
static int device_speed_thresh[2];
-#define RQ_BIC(rq) ((struct bfq_io_cq *) (rq)->elv.priv[0])
+#define RQ_BIC(rq) icq_to_bic((rq)->elv.priv[0])
#define RQ_BFQQ(rq) ((rq)->elv.priv[1])
struct bfq_queue *bic_to_bfqq(struct bfq_io_cq *bic, bool is_sync)