diff options
author | Yu Kuai <yukuai3@huawei.com> | 2022-12-14 04:31:55 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-12-14 17:51:11 +0100 |
commit | 337366e02b370d2800110fbc99940f6ddddcbdfa (patch) | |
tree | 3b188583d984e6096a8cb1b248cc1cb8598c7e4c /block/bfq-iosched.c | |
parent | block, bfq: don't return bfqg from __bfq_bic_change_cgroup() (diff) | |
download | linux-337366e02b370d2800110fbc99940f6ddddcbdfa.tar.xz linux-337366e02b370d2800110fbc99940f6ddddcbdfa.zip |
block, bfq: replace 0/1 with false/true in bic apis
Just to make the code a litter cleaner, there are no functional changes.
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20221214033155.3455754-3-yukuai1@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bfq-iosched.c')
-rw-r--r-- | block/bfq-iosched.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c index b111a7b8dca6..dc576b90ddfe 100644 --- a/block/bfq-iosched.c +++ b/block/bfq-iosched.c @@ -3114,7 +3114,7 @@ bfq_merge_bfqqs(struct bfq_data *bfqd, struct bfq_io_cq *bic, /* * Merge queues (that is, let bic redirect its requests to new_bfqq) */ - bic_set_bfqq(bic, new_bfqq, 1); + bic_set_bfqq(bic, new_bfqq, true); bfq_mark_bfqq_coop(new_bfqq); /* * new_bfqq now belongs to at least two bics (it is a shared queue): @@ -6562,7 +6562,7 @@ bfq_split_bfqq(struct bfq_io_cq *bic, struct bfq_queue *bfqq) return bfqq; } - bic_set_bfqq(bic, NULL, 1); + bic_set_bfqq(bic, NULL, true); bfq_put_cooperator(bfqq); |