]> git.baikalelectronics.ru Git - kernel.git/commit
block: factor out a bvec_set_page helper
authorChristoph Hellwig <hch@lst.de>
Fri, 3 Feb 2023 15:06:12 +0000 (16:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Sep 2023 09:11:08 +0000 (11:11 +0200)
commit00cf1dc13c1f5207693abe59d6e26d8fd0ed7673
treee66fdb21676868596deff17080fad89cf8f2739f
parent2174731a17b04bc01d0c9e68414dca7091a59cbe
block: factor out a bvec_set_page helper

[ Upstream commit d58cdfae6a22e5079656c487aad669597a0635c8 ]

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>
Stable-dep-of: 1f0bbf28940c ("nvmet-tcp: pass iov_len instead of sg->length to bvec_set_page()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
block/bio-integrity.c
block/bio.c
include/linux/bvec.h