This just ignore the remaining pages.
Signed-off-by: OGAWA Hirofumi <[email protected]>
---
fs/fuse/file.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff -puN fs/fuse/file.c~readpages-fixes-fuse fs/fuse/file.c
--- linux-2.6/fs/fuse/file.c~readpages-fixes-fuse 2006-10-31 04:26:17.000000000 +0900
+++ linux-2.6-hirofumi/fs/fuse/file.c 2006-10-31 04:26:17.000000000 +0900
@@ -397,14 +397,14 @@ static int fuse_readpages(struct file *f
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 *f
else
fuse_put_request(fc, data.req);
}
- return err;
-
-clean_pages_up:
- put_pages_list(pages);
+out:
return err;
}
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]