]> git.baikalelectronics.ru Git - kernel.git/commit
blk-iocost: Simplify ioc_rqos_done()
authorBart Van Assche <bvanassche@acm.org>
Wed, 15 Jun 2022 22:55:47 +0000 (15:55 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 27 Jun 2022 12:29:11 +0000 (06:29 -0600)
commit519aa74210ddb75446aacdba8bff0dffa2055a12
tree26a05eb8cf4e53f5dfe447d37c66ad053a56e9c0
parentd5e541d7c6843683e40a2a8bfa762e3df5356070
blk-iocost: Simplify ioc_rqos_done()

Leave out the superfluous "& REQ_OP_MASK" code. The definition of req_op()
shows that that code is superfluous:

 #define req_op(req) ((req)->cmd_flags & REQ_OP_MASK)

Compile-tested only.

Cc: Tejun Heo <tj@kernel.org>
Acked-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20220615225549.1054905-2-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-iocost.c