mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[PATCH] fuse: ->readpages() cleanup
This just ignore the remaining pages. Signed-off-by: OGAWA Hirofumi <[email protected]> Cc: Steven French <[email protected]> Cc: Miklos Szeredi <[email protected]> Cc: Steven Whitehouse <[email protected]> Cc: Trond Myklebust <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
05ac9d4b3d
commit
2e990021bf
1 changed files with 3 additions and 6 deletions
|
|
@ -397,14 +397,14 @@ static int fuse_readpages(struct file *file, struct address_space *mapping,
|
|||
|
||||
err = -EIO;
|
||||
if (is_bad_inode(inode))
|
||||
goto clean_pages_up;
|
||||
goto out;
|
||||
|
||||
data.file = file;
|
||||
data.inode = inode;
|
||||
data.req = fuse_get_req(fc);
|
||||
err = PTR_ERR(data.req);
|
||||
if (IS_ERR(data.req))
|
||||
goto clean_pages_up;
|
||||
goto out;
|
||||
|
||||
err = read_cache_pages(mapping, pages, fuse_readpages_fill, &data);
|
||||
if (!err) {
|
||||
|
|
@ -413,10 +413,7 @@ static int fuse_readpages(struct file *file, struct address_space *mapping,
|
|||
else
|
||||
fuse_put_request(fc, data.req);
|
||||
}
|
||||
return err;
|
||||
|
||||
clean_pages_up:
|
||||
put_pages_list(pages);
|
||||
out:
|
||||
return err;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue