summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-02-03 18:06:28 +0300
committerJens Axboe <axboe@kernel.dk>2023-02-03 20:17:42 +0300
commit664e40789abaad892737a696102052dae199a029 (patch)
treeb2e0e6a82daedeff51137a830741627ad91f2ddf /fs
parent8ead80b2c5f8c59d6ca18cd7fb582a3ffc7ea5b7 (diff)
downloadlinux-664e40789abaad892737a696102052dae199a029.tar.xz
splice: use bvec_set_page to initialize a bvec
Use the bvec_set_page helper to initialize a bvec. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20230203150634.3199647-18-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs')
-rw-r--r--fs/splice.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/splice.c b/fs/splice.c
index 5969b7a1d353..87d9b19349de 100644
--- a/fs/splice.c
+++ b/fs/splice.c
@@ -675,9 +675,8 @@ iter_file_splice_write(struct pipe_inode_info *pipe, struct file *out,
goto done;
}
- array[n].bv_page = buf->page;
- array[n].bv_len = this_len;
- array[n].bv_offset = buf->offset;
+ bvec_set_page(&array[n], buf->page, this_len,
+ buf->offset);
left -= this_len;
n++;
}