]> www.infradead.org Git - nvme.git/commit
block: Make bio_iov_bvec_set() accept pointer to const iov_iter
authorJohn Garry <john.g.garry@oracle.com>
Mon, 2 Dec 2024 11:57:27 +0000 (11:57 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 12 Dec 2024 15:43:28 +0000 (08:43 -0700)
commit2f4873f9b5f8a49113045ad91c021347486de323
tree58689e328dd974272eac5428c99934ef212f5fc2
parent790eb09e59709a1ffc1c64fe4aae2789120851b0
block: Make bio_iov_bvec_set() accept pointer to const iov_iter

Make bio_iov_bvec_set() accept a pointer to const iov_iter, which means
that we can drop the undesirable casting to struct iov_iter pointer in
blk_rq_map_user_bvec().

Signed-off-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20241202115727.2320401-1-john.g.garry@oracle.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
block/blk-map.c
include/linux/bio.h