]> www.infradead.org Git - users/hch/misc.git/commit
block: pass the operation to bio_{map,copy}_kern
authorChristoph Hellwig <hch@lst.de>
Sat, 12 Apr 2025 07:54:40 +0000 (09:54 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 29 Apr 2025 19:03:18 +0000 (14:03 -0500)
commitfd258ae3bd0aff890bb501a0e99af239e597628b
tree06dcdef4feee7d67de2a0c9e6dca8eea1210a2a9
parent8a2c55da1c3e7fedb2a812532bbb24f4a6b8b4c3
block: pass the operation to bio_{map,copy}_kern

That way the bio can be allocated with the right operation already
set and there is no need to pass the separated 'reading' argument.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
block/blk-map.c