summaryrefslogtreecommitdiffstats
path: root/mm/truncate.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-07-24 18:54:32 +0200
committerJens Axboe <axboe@kernel.dk>2023-07-25 03:55:16 +0200
commit858c708d9efb7e8e5c6320793b778cc17cf8368a (patch)
treef463c73809917e735451096b6f891173d4740236 /mm/truncate.c
parentblock: downgrade a bio_full call in bio_add_page (diff)
downloadlinux-858c708d9efb7e8e5c6320793b778cc17cf8368a.tar.xz
linux-858c708d9efb7e8e5c6320793b778cc17cf8368a.zip
block: move the bi_size update out of __bio_try_merge_page
The update of bi_size is the only thing in __bio_try_merge_page that needs a bio. Move it to the callers, and merge __bio_try_merge_page and page_is_mergeable into a single bvec_try_merge_page that only takes the current bvec instead of a full bio. 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-8-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'mm/truncate.c')
0 files changed, 0 insertions, 0 deletions