commit | ecc087ff14352aed52b8e775b4511e7f9cfc64ec | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Thu May 07 11:19:14 2015 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Mon May 11 08:13:13 2015 -0400 |
tree | 46a1845f647b8d59e28c49be683949a179b2ecdd | |
parent | 5f2c4179e129bdc47870a81a65d0aff85aa18293 [diff] [blame] |
new helper: free_page_put_link() similar to kfree_put_link() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/libfs.c b/fs/libfs.c index 01c337b..65e1fec 100644 --- a/fs/libfs.c +++ b/fs/libfs.c
@@ -1030,6 +1030,12 @@ } 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.