From: Jens Axboe Date: Mon, 27 Aug 2018 19:32:12 +0000 (-0600) Subject: blk-wbt: remove dead code X-Git-Tag: v4.19~17^2~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b0a84beb2e35536839ea289182684528f379b860;p=platform%2Fkernel%2Flinux-rpi.git blk-wbt: remove dead code We already note and mark discard and swap IO from bio_to_wbt_flags(). Signed-off-by: Jens Axboe --- diff --git a/block/blk-wbt.c b/block/blk-wbt.c index bfb0d21..8e20a067 100644 --- a/block/blk-wbt.c +++ b/block/blk-wbt.c @@ -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))