blk-throttle: Eliminate redundant checks for data direction
authorTang Yizhou <yizhou.tang@shopee.com>
Tue, 23 Jan 2024 08:12:48 +0000 (16:12 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 5 Feb 2024 17:16:12 +0000 (10:16 -0700)
commit3bca7640b4c50621b94365a1746f4b86116fec56
tree2a48d5858bd1e0584d84cb886ccc4a20cf1d0eb5
parent06b23f92af87a84d70881b2ecaa72e00f7838264
blk-throttle: Eliminate redundant checks for data direction

After calling throtl_peek_queued(), the data direction can be determined so
there is no need to call bio_data_dir() to check the direction again.

Signed-off-by: Tang Yizhou <yizhou.tang@shopee.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20240123081248.3752878-1-yizhou.tang@shopee.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-throttle.c