block: factor out a bvec_set_page helper
authorChristoph Hellwig <hch@lst.de>
Fri, 3 Feb 2023 15:06:12 +0000 (16:06 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 3 Feb 2023 15:20:54 +0000 (08:20 -0700)
commitd58cdfae6a22e5079656c487aad669597a0635c8
treeb2cfec440f8e45d1b2e75feecf6737b0681870db
parent3f13ab7c80fdb0ada86a8e3e818960bc1ccbaa59
block: factor out a bvec_set_page helper

Add a helper to initialize a bvec based of a page pointer.  This will help
removing various open code bvec initializations.

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-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio-integrity.c
block/bio.c
include/linux/bvec.h