lkml.org 
[lkml]   [2006]   [Oct]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 3/4] fuse: ->readpages() cleanup
From
Date
This just ignore the remaining pages.

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
---

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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-10-30 21:11    [W:0.087 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site