Skip to content

Commit b0a84be

Browse files
committed
blk-wbt: remove dead code
We already note and mark discard and swap IO from bio_to_wbt_flags(). Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 057d3cc commit b0a84be

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

block/blk-wbt.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -636,11 +636,6 @@ static void wbt_wait(struct rq_qos *rqos, struct bio *bio, spinlock_t *lock)
636636
return;
637637
}
638638

639-
if (current_is_kswapd())
640-
flags |= WBT_KSWAPD;
641-
if (bio_op(bio) == REQ_OP_DISCARD)
642-
flags |= WBT_DISCARD;
643-
644639
__wbt_wait(rwb, flags, bio->bi_opf, lock);
645640

646641
if (!blk_stat_is_active(rwb->cb))

0 commit comments

Comments
 (0)