]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iov_iter: extract a iov_iter_extract_bvecs helper from bio code
authorChristoph Hellwig <hch@lst.de>
Mon, 26 Jan 2026 05:53:35 +0000 (06:53 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 28 Jan 2026 12:16:39 +0000 (05:16 -0700)
commit91b73c458182801a8c9cf6135335e064567d1013
treeff2c6e2424498f13eca916b42227e76aa46cafde
parent12da89e8844ae16e86b75a32b34a4f0b0525f453
iov_iter: extract a iov_iter_extract_bvecs helper from bio code

Massage __bio_iov_iter_get_pages so that it doesn't need the bio, and
move it to lib/iov_iter.c so that it can be used by block code for
other things than filling a bio and by other subsystems like netfs.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
include/linux/uio.h
lib/iov_iter.c