kill free_page_put_link()
all callers are better off with kfree_put_link() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user