block: pass the operation to bio_{map,copy}_kern
authorChristoph Hellwig <hch@lst.de>
Wed, 7 May 2025 12:04:30 +0000 (14:04 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 May 2025 13:31:07 +0000 (07:31 -0600)
commitfddbc51dc290f834f520ce89c00a0fce38260c16
treef3e1f31623c8d089abd857dd97974baa65baf501
parentaf78428ed3f3eebad7be9d0463251046e9582cf6
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>
Link: https://lore.kernel.org/r/20250507120451.4000627-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-map.c