summaryrefslogtreecommitdiffstats
path: root/fs/netfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/netfs')
-rw-r--r--fs/netfs/iterator.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/netfs/iterator.c b/fs/netfs/iterator.c
index 80d7ff440cac..f00d43b8ac0a 100644
--- a/fs/netfs/iterator.c
+++ b/fs/netfs/iterator.c
@@ -89,9 +89,7 @@ ssize_t netfs_extract_user_iter(struct iov_iter *orig, size_t orig_len,
for (i = 0; i < cur_npages; i++) {
len = ret > PAGE_SIZE ? PAGE_SIZE : ret;
- bv[npages + i].bv_page = *pages++;
- bv[npages + i].bv_offset = offset;
- bv[npages + i].bv_len = len - offset;
+ bvec_set_page(bv + npages + i, *pages++, len - offset, offset);
ret -= len;
offset = 0;
}