summaryrefslogtreecommitdiff
path: root/fs/fuse/file.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2021-06-03 17:34:55 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2021-06-03 17:34:55 +0300
commit8959a239242754054e70391c05c06d8c4eb2bc77 (patch)
treecaec9e495a29f09faaee96fb1b7820f6f714c9cc /fs/fuse/file.c
parentbc1bb416bbb9203e250f5c49aaf1d11b5d9c8adb (diff)
downloadlinux-8959a239242754054e70391c05c06d8c4eb2bc77.tar.xz
fuse_fill_write_pages(): don't bother with iov_iter_single_seg_count()
another rudiment of fault-in originally having been limited to the first segment, same as in generic_perform_write() and friends. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/fuse/file.c')
-rw-r--r--fs/fuse/file.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index 09ef2a4d25ed..44bd301fa4fb 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -1178,7 +1178,6 @@ static ssize_t fuse_fill_write_pages(struct fuse_io_args *ia,
if (!tmp) {
unlock_page(page);
put_page(page);
- bytes = min(bytes, iov_iter_single_seg_count(ii));
goto again;
}