diff options
| author | John Garry <john.g.garry@oracle.com> | 2024-12-02 11:57:27 +0000 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2024-12-12 08:43:28 -0700 |
| commit | 2f4873f9b5f8a49113045ad91c021347486de323 (patch) | |
| tree | 58689e328dd974272eac5428c99934ef212f5fc2 /block/blk-map.c | |
| parent | 790eb09e59709a1ffc1c64fe4aae2789120851b0 (diff) | |
| download | linux-2f4873f9b5f8a49113045ad91c021347486de323.tar.gz linux-2f4873f9b5f8a49113045ad91c021347486de323.tar.bz2 linux-2f4873f9b5f8a49113045ad91c021347486de323.zip | |
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>
Diffstat (limited to 'block/blk-map.c')
| -rw-r--r-- | block/blk-map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-map.c b/block/blk-map.c index b5fd1d857461..894009b2d881 100644 --- a/block/blk-map.c +++ b/block/blk-map.c @@ -574,7 +574,7 @@ static int blk_rq_map_user_bvec(struct request *rq, const struct iov_iter *iter) bio = blk_rq_map_bio_alloc(rq, 0, GFP_KERNEL); if (!bio) return -ENOMEM; - bio_iov_bvec_set(bio, (struct iov_iter *)iter); + bio_iov_bvec_set(bio, iter); /* check that the data layout matches the hardware restrictions */ ret = bio_split_rw_at(bio, lim, &nsegs, max_bytes); |
