diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2015-12-29 16:03:53 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-12-29 16:03:53 -0500 |
commit | cd3417c8fc9504cc1afe944515f338aff9ec286b (patch) | |
tree | c60b8132b9deff6d5a5c3f229cce2efd9ac135a3 /fs/fuse | |
parent | 0d0def49d05ae988936268b0e57d19aeef8c3ad2 (diff) | |
download | linux-cd3417c8fc9504cc1afe944515f338aff9ec286b.tar.gz linux-cd3417c8fc9504cc1afe944515f338aff9ec286b.tar.bz2 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.c | 6 |
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, |