]> git.baikalelectronics.ru Git - kernel.git/commit
block: Fix the bio.bi_opf comment
authorBart Van Assche <bvanassche@acm.org>
Wed, 11 May 2022 23:51:52 +0000 (16:51 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 12 May 2022 12:33:26 +0000 (06:33 -0600)
commit4793d6097f66930de1cf5fbfab70a67bc6f44c71
tree0f18e3fe0fb4fdb72ccb37340d6a0e8dfe5359c2
parente32c756fcce61009e1221d35700ffa4db40d3d01
block: Fix the bio.bi_opf comment

Commit 43a94d680d3e modified the Linux kernel such that the bottom bits
of the bi_opf member contain the operation instead of the topmost bits.
That commit did not update the comment next to bi_opf. Hence this patch.

From commit 43a94d680d3e:
-#define bio_op(bio)    ((bio)->bi_opf >> BIO_OP_SHIFT)
+#define bio_op(bio)    ((bio)->bi_opf & REQ_OP_MASK)

Cc: Christoph Hellwig <hch@lst.de>
Cc: Ming Lei <ming.lei@redhat.com>
Fixes: 43a94d680d3e ("block: better op and flags encoding")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220511235152.1082246-1-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blk_types.h