]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 10 Aug 2022 07:24:27 +0000 (09:24 +0200)
commit5920801617a8d8065d9ad0bb9716ef45c5400074
treeb8596500bd4234246fccb3755cfcde2021cd1778
parent78d73666ae0e0127002ed8222b2078cb5e2155e1
block: Fix the bio.bi_opf comment

BugLink: https://bugs.launchpad.net/bugs/1981864
[ Upstream commit 5d2ae14276e698c76fa0c8ce870103f343b38263 ]

Commit ef295ecf090d 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 ef295ecf090d:
-#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: ef295ecf090d ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
include/linux/blk_types.h