summaryrefslogtreecommitdiffstats
path: root/fs/fuse
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/fuse
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/fuse')
-rw-r--r--fs/fuse/dir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c
index 148e8ef7c541..def0a4d082bc 100644
--- a/fs/fuse/dir.c
+++ b/fs/fuse/dir.c
@@ -1376,7 +1376,7 @@ static const char *fuse_get_link(struct dentry *dentry,
if (!dentry)
return ERR_PTR(-ECHILD);
- link = (char *) __get_free_page(GFP_KERNEL);
+ link = kmalloc(PAGE_SIZE, GFP_KERNEL);
if (!link)
return ERR_PTR(-ENOMEM);
@@ -1388,7 +1388,7 @@ static const char *fuse_get_link(struct dentry *dentry,
args.out.args[0].value = link;
ret = fuse_simple_request(fc, &args);
if (ret < 0) {
- free_page((unsigned long) link);
+ kfree(link);
link = ERR_PTR(ret);
} else {
link[ret] = '\0';
@@ -1913,7 +1913,7 @@ static const struct inode_operations fuse_common_inode_operations = {
static const struct inode_operations fuse_symlink_inode_operations = {
.setattr = fuse_setattr,
.get_link = fuse_get_link,
- .put_link = free_page_put_link,
+ .put_link = kfree_put_link,
.readlink = generic_readlink,
.getattr = fuse_getattr,
.setxattr = fuse_setxattr,