summaryrefslogtreecommitdiffstats
path: root/fs/configfs/symlink.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2015-12-29 22:03:53 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2015-12-29 22:03:53 +0100
commitcd3417c8fc9504cc1afe944515f338aff9ec286b (patch)
treec60b8132b9deff6d5a5c3f229cce2efd9ac135a3 /fs/configfs/symlink.c
parentteach nfs_get_link() to work in RCU mode (diff)
downloadlinux-cd3417c8fc9504cc1afe944515f338aff9ec286b.tar.xz
linux-cd3417c8fc9504cc1afe944515f338aff9ec286b.zip
kill free_page_put_link()
all callers are better off with kfree_put_link() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/configfs/symlink.c')
-rw-r--r--fs/configfs/symlink.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/configfs/symlink.c b/fs/configfs/symlink.c
index b91c01ebb688..e9de962e518d 100644
--- a/fs/configfs/symlink.c
+++ b/fs/configfs/symlink.c
@@ -282,29 +282,29 @@ static int configfs_getlink(struct dentry *dentry, char * path)
static const char *configfs_get_link(struct dentry *dentry,
struct inode *inode, void **cookie)
{
- unsigned long page;
+ char *page;
int error;
if (!dentry)
return ERR_PTR(-ECHILD);
- page = get_zeroed_page(GFP_KERNEL);
+ page = kzalloc(PAGE_SIZE, GFP_KERNEL);
if (!page)
return ERR_PTR(-ENOMEM);
- error = configfs_getlink(dentry, (char *)page);
+ error = configfs_getlink(dentry, page);
if (!error) {
- return *cookie = (void *)page;
+ return *cookie = page;
}
- free_page(page);
+ kfree(page);
return ERR_PTR(error);
}
const struct inode_operations configfs_symlink_inode_operations = {
.get_link = configfs_get_link,
.readlink = generic_readlink,
- .put_link = free_page_put_link,
+ .put_link = kfree_put_link,
.setattr = configfs_setattr,
};