diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2015-05-07 17:19:14 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-05-11 14:13:13 +0200 |
commit | ecc087ff14352aed52b8e775b4511e7f9cfc64ec (patch) | |
tree | 46a1845f647b8d59e28c49be683949a179b2ecdd /fs/libfs.c | |
parent | switch ->put_link() from dentry to inode (diff) | |
download | linux-ecc087ff14352aed52b8e775b4511e7f9cfc64ec.tar.xz linux-ecc087ff14352aed52b8e775b4511e7f9cfc64ec.zip |
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.c | 6 |
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. |