diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2014-06-19 02:34:33 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-08-07 20:40:11 +0200 |
commit | c7f3888ad7f0932a87fb76e6e4edff2a90cc7920 (patch) | |
tree | d108b0518699032b366b78fe461be3fc0fa307d2 /fs/fuse | |
parent | fs: mark __d_obtain_alias static (diff) | |
download | linux-c7f3888ad7f0932a87fb76e6e4edff2a90cc7920.tar.xz linux-c7f3888ad7f0932a87fb76e6e4edff2a90cc7920.zip |
switch iov_iter_get_pages() to passing maximal number of pages
... instead of maximal size.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/fuse')
-rw-r--r-- | fs/fuse/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c index 40ac2628ddcf..912061ac4baf 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c @@ -1303,10 +1303,10 @@ static int fuse_get_user_pages(struct fuse_req *req, struct iov_iter *ii, while (nbytes < *nbytesp && req->num_pages < req->max_pages) { unsigned npages; size_t start; - unsigned n = req->max_pages - req->num_pages; ssize_t ret = iov_iter_get_pages(ii, &req->pages[req->num_pages], - n * PAGE_SIZE, &start); + req->max_pages - req->num_pages, + &start); if (ret < 0) return ret; |