summaryrefslogtreecommitdiffstats
path: root/fs/fuse/dev.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2010-10-27 15:34:46 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2010-10-27 18:03:17 -0700
commit0be8557bcd34887d5a42c01c5659cab5ecf99f13 (patch)
tree80d211221be1583303818cf201d6e40cc0674608 /fs/fuse/dev.c
parentd57af9b2142f31a39dcfdeb30776baadfc802827 (diff)
downloadop-kernel-dev-0be8557bcd34887d5a42c01c5659cab5ecf99f13.zip
op-kernel-dev-0be8557bcd34887d5a42c01c5659cab5ecf99f13.tar.gz
fuse: use release_pages()
Replace iterated page_cache_release() with release_pages(), which is faster and shorter. Needs release_pages() to be exported to modules. Suggested-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/fuse/dev.c')
-rw-r--r--fs/fuse/dev.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c
index b986642..6e07696 100644
--- a/fs/fuse/dev.c
+++ b/fs/fuse/dev.c
@@ -1334,12 +1334,7 @@ out_finish:
static void fuse_retrieve_end(struct fuse_conn *fc, struct fuse_req *req)
{
- int i;
-
- for (i = 0; i < req->num_pages; i++) {
- struct page *page = req->pages[i];
- page_cache_release(page);
- }
+ release_pages(req->pages, req->num_pages, 0);
}
static int fuse_retrieve(struct fuse_conn *fc, struct inode *inode,
OpenPOWER on IntegriCloud