Skip to content

Commit

Permalink
blk-wbt: remove dead code
Browse files Browse the repository at this point in the history
We already note and mark discard and swap IO from bio_to_wbt_flags().

Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
axboe committed Aug 27, 2018
1 parent 057d3cc commit b0a84be
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions block/blk-wbt.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,11 +636,6 @@ static void wbt_wait(struct rq_qos *rqos, struct bio *bio, spinlock_t *lock)
return;
}

if (current_is_kswapd())
flags |= WBT_KSWAPD;
if (bio_op(bio) == REQ_OP_DISCARD)
flags |= WBT_DISCARD;

__wbt_wait(rwb, flags, bio->bi_opf, lock);

if (!blk_stat_is_active(rwb->cb))
Expand Down

0 comments on commit b0a84be

Please sign in to comment.