projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ead80b
)
splice: use bvec_set_page to initialize a bvec
author
Christoph Hellwig
<hch@lst.de>
Fri, 3 Feb 2023 15:06:28 +0000
(16:06 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Fri, 3 Feb 2023 17:17:42 +0000
(10:17 -0700)
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>
fs/splice.c
patch
|
blob
|
history
diff --git
a/fs/splice.c
b/fs/splice.c
index 5969b7a1d353a8923452415140bfd743b2f188c8..87d9b19349de635f0423ca111e7908027eef2763 100644
(file)
--- 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++;
}