block: don't pass a bio to bio_try_merge_hw_seg
authorChristoph Hellwig <hch@lst.de>
Mon, 24 Jul 2023 16:54:33 +0000 (09:54 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 25 Jul 2023 01:55:16 +0000 (19:55 -0600)
commitae42f0b3bf65912e122fc2e8d5f6d94b51156dba
tree66a74312f928da188fb32e1b6f699a8e5549bba0
parent858c708d9efb7e8e5c6320793b778cc17cf8368a
block: don't pass a bio to bio_try_merge_hw_seg

There is no good reason to pass the bio to bio_try_merge_hw_seg.  Just
pass the current bvec and rename the function to bvec_try_merge_hw_page.
This will allow reusing this function for supporting multi-page integrity
payload bvecs.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jinyoung Choi <j-young.choi@samsung.com>
Link: https://lore.kernel.org/r/20230724165433.117645-9-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c