diff options
author | Jens Axboe <axboe@kernel.dk> | 2018-08-27 13:32:12 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-08-27 13:32:12 -0600 |
commit | b0a84beb2e35536839ea289182684528f379b860 (patch) | |
tree | 43d61220af501a0350f5ef444609c12e62727732 /block/blk-wbt.c | |
parent | 057d3ccf93a437080c4138cd6d74c4d7cf332131 (diff) | |
download | linux-b0a84beb2e35536839ea289182684528f379b860.tar.gz linux-b0a84beb2e35536839ea289182684528f379b860.tar.bz2 linux-b0a84beb2e35536839ea289182684528f379b860.zip |
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>
Diffstat (limited to 'block/blk-wbt.c')
-rw-r--r-- | block/blk-wbt.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/block/blk-wbt.c b/block/blk-wbt.c index bfb0d21d19ce..8e20a0677dcf 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)) |