Commit 2e990021 authored by OGAWA Hirofumi's avatar OGAWA Hirofumi Committed by Linus Torvalds

[PATCH] fuse: ->readpages() cleanup

This just ignore the remaining pages.
Signed-off-by: default avatarOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Cc: Steven French <sfrench@us.ibm.com>
Cc: Miklos Szeredi <miklos@szeredi.hu>
Cc: Steven Whitehouse <swhiteho@redhat.com>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 05ac9d4b
...@@ -397,14 +397,14 @@ static int fuse_readpages(struct file *file, struct address_space *mapping, ...@@ -397,14 +397,14 @@ static int fuse_readpages(struct file *file, struct address_space *mapping,
err = -EIO; err = -EIO;
if (is_bad_inode(inode)) if (is_bad_inode(inode))
goto clean_pages_up; goto out;
data.file = file; data.file = file;
data.inode = inode; data.inode = inode;
data.req = fuse_get_req(fc); data.req = fuse_get_req(fc);
err = PTR_ERR(data.req); err = PTR_ERR(data.req);
if (IS_ERR(data.req)) if (IS_ERR(data.req))
goto clean_pages_up; goto out;
err = read_cache_pages(mapping, pages, fuse_readpages_fill, &data); err = read_cache_pages(mapping, pages, fuse_readpages_fill, &data);
if (!err) { if (!err) {
...@@ -413,10 +413,7 @@ static int fuse_readpages(struct file *file, struct address_space *mapping, ...@@ -413,10 +413,7 @@ static int fuse_readpages(struct file *file, struct address_space *mapping,
else else
fuse_put_request(fc, data.req); fuse_put_request(fc, data.req);
} }
return err; out:
clean_pages_up:
put_pages_list(pages);
return err; return err;
} }
......
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