block: add a bvec_set_folio helper
authorChristoph Hellwig <hch@lst.de>
Fri, 3 Feb 2023 15:06:13 +0000 (16:06 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 3 Feb 2023 15:20:55 +0000 (08:20 -0700)
commit26db5ee158510108c819aa7be6eb8c75accf85d7
tree0f645f5eecad412ea2e26aa63d8b6a8bc18d56ee
parentd58cdfae6a22e5079656c487aad669597a0635c8
block: add a bvec_set_folio helper

A smaller wrapper around bvec_set_page that takes a folio instead.
There are only two potential users for this in the tree, but the number
will grow in the future.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20230203150634.3199647-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/bvec.h