new helper: free_page_put_link()

similar to kfree_put_link()

Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
Al Viro 2015-05-07 11:19:14 -04:00
commit ecc087ff14
5 changed files with 10 additions and 18 deletions

View file

@ -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.