]> www.infradead.org Git - nvme.git/commit
block: drop direction param from bio_integrity_copy_user()
authorCaleb Sander Mateos <csander@purestorage.com>
Tue, 3 Jun 2025 18:31:32 +0000 (12:31 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 3 Jun 2025 18:45:45 +0000 (12:45 -0600)
commitc09a8b00f850d3ca0af998bff1fac4a3f6d11768
tree1c891943ced8ad61774bee5c4a0ba8310c2e555d
parentda12597a1d8c1f91ae509520e9e1bf90648feb93
block: drop direction param from bio_integrity_copy_user()

direction is determined from bio, which is already passed in. Compute
op_is_write(bio_op(bio)) directly instead of converting it to an iter
direction and back to a bool.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Anuj Gupta <anuj20.g@samsung.com>
Link: https://lore.kernel.org/r/20250603183133.1178062-1-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio-integrity.c