diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2010-10-27 15:34:46 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-27 18:03:17 -0700 |
commit | 0be8557bcd34887d5a42c01c5659cab5ecf99f13 (patch) | |
tree | 80d211221be1583303818cf201d6e40cc0674608 /mm/swap.c | |
parent | d57af9b2142f31a39dcfdeb30776baadfc802827 (diff) | |
download | op-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 'mm/swap.c')
-rw-r--r-- | mm/swap.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -378,6 +378,7 @@ void release_pages(struct page **pages, int nr, int cold) pagevec_free(&pages_to_free); } +EXPORT_SYMBOL(release_pages); /* * The pages which we're about to release may be in the deferred lru-addition |