summaryrefslogtreecommitdiff
path: root/fs/libfs.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2015-05-07 18:19:14 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2015-05-11 15:13:13 +0300
commitecc087ff14352aed52b8e775b4511e7f9cfc64ec (patch)
tree46a1845f647b8d59e28c49be683949a179b2ecdd /fs/libfs.c
parent5f2c4179e129bdc47870a81a65d0aff85aa18293 (diff)
downloadlinux-ecc087ff14352aed52b8e775b4511e7f9cfc64ec.tar.xz
new helper: free_page_put_link()
similar to kfree_put_link() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/libfs.c')
-rw-r--r--fs/libfs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/libfs.c b/fs/libfs.c
index 01c337b0fec8..65e1feca8b98 100644
--- a/fs/libfs.c
+++ b/fs/libfs.c
@@ -1030,6 +1030,12 @@ void kfree_put_link(struct inode *unused, void *cookie)
}
EXPORT_SYMBOL(kfree_put_link);
+void free_page_put_link(struct inode *unused, void *cookie)
+{
+ free_page((unsigned long) cookie);
+}
+EXPORT_SYMBOL(free_page_put_link);
+
/*
* nop .set_page_dirty method so that people can use .page_mkwrite on
* anon inodes.