blk-wbt: move disable check into get_limit()
authorJens Axboe <axboe@kernel.dk>
Mon, 20 Aug 2018 19:24:25 +0000 (13:24 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 22 Aug 2018 21:07:31 +0000 (15:07 -0600)
commitffa358dcaae1f2f00926484e712e06daa8953cb4
tree9b1050c8182c0f032ff5a1b0b706968ac4535708
parent3943b040f11ed0cc6d4585fd286a623ca8634547
blk-wbt: move disable check into get_limit()

Check it in one place, instead of in multiple places.

Tested-by: Anchal Agarwal <anchalag@amazon.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-wbt.c