Commit 8959a239 authored by Al Viro's avatar Al Viro

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: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent bc1bb416
...@@ -1178,7 +1178,6 @@ static ssize_t fuse_fill_write_pages(struct fuse_io_args *ia, ...@@ -1178,7 +1178,6 @@ static ssize_t fuse_fill_write_pages(struct fuse_io_args *ia,
if (!tmp) { if (!tmp) {
unlock_page(page); unlock_page(page);
put_page(page); put_page(page);
bytes = min(bytes, iov_iter_single_seg_count(ii));
goto again; goto again;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment