From: Al Viro Date: Thu, 3 Jun 2021 14:34:55 +0000 (-0400) Subject: fuse_fill_write_pages(): don't bother with iov_iter_single_seg_count() X-Git-Tag: v5.14-rc1~90^2~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8959a239242754054e70391c05c06d8c4eb2bc77;p=thirdparty%2Fkernel%2Flinux.git 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 --- diff --git a/fs/fuse/file.c b/fs/fuse/file.c index 09ef2a4d25edc..44bd301fa4fbe 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; }