new helper: free_page_put_link()
similar to kfree_put_link() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -126,11 +126,6 @@ static const char *kernfs_iop_follow_link(struct dentry *dentry, void **cookie)
|
||||
return *cookie = (char *)page;
|
||||
}
|
||||
|
||||
static void kernfs_iop_put_link(struct inode *unused, void *cookie)
|
||||
{
|
||||
free_page((unsigned long)cookie);
|
||||
}
|
||||
|
||||
const struct inode_operations kernfs_symlink_iops = {
|
||||
.setxattr = kernfs_iop_setxattr,
|
||||
.removexattr = kernfs_iop_removexattr,
|
||||
@@ -138,7 +133,7 @@ const struct inode_operations kernfs_symlink_iops = {
|
||||
.listxattr = kernfs_iop_listxattr,
|
||||
.readlink = generic_readlink,
|
||||
.follow_link = kernfs_iop_follow_link,
|
||||
.put_link = kernfs_iop_put_link,
|
||||
.put_link = free_page_put_link,
|
||||
.setattr = kernfs_iop_setattr,
|
||||
.getattr = kernfs_iop_getattr,
|
||||
.permission = kernfs_iop_permission,
|
||||
|
Reference in New Issue
Block a user