Skip to content

Commit 12cd3a2

Browse files
KAGA-KOKOaxboe
authored andcommitted
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 <paolo.valente@linaro.org> Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 1530486 commit 12cd3a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎block/bfq-iosched.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ static int T_slow[2];
239239
static int T_fast[2];
240240
static int device_speed_thresh[2];
241241

242-
#define RQ_BIC(rq) ((struct bfq_io_cq *) (rq)->elv.priv[0])
242+
#define RQ_BIC(rq) icq_to_bic((rq)->elv.priv[0])
243243
#define RQ_BFQQ(rq) ((rq)->elv.priv[1])
244244

245245
struct bfq_queue *bic_to_bfqq(struct bfq_io_cq *bic, bool is_sync)

0 commit comments

Comments
 (0)