Commit 96c8c442 authored by Al Viro's avatar Al Viro

xfs: switch to kfree_put_link()

don't bother open-coding it...
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent b22e8fed
...@@ -391,18 +391,6 @@ xfs_vn_follow_link( ...@@ -391,18 +391,6 @@ xfs_vn_follow_link(
return NULL; return NULL;
} }
STATIC void
xfs_vn_put_link(
struct dentry *dentry,
struct nameidata *nd,
void *p)
{
char *s = nd_get_link(nd);
if (!IS_ERR(s))
kfree(s);
}
STATIC int STATIC int
xfs_vn_getattr( xfs_vn_getattr(
struct vfsmount *mnt, struct vfsmount *mnt,
...@@ -1118,7 +1106,7 @@ static const struct inode_operations xfs_dir_ci_inode_operations = { ...@@ -1118,7 +1106,7 @@ static const struct inode_operations xfs_dir_ci_inode_operations = {
static const struct inode_operations xfs_symlink_inode_operations = { static const struct inode_operations xfs_symlink_inode_operations = {
.readlink = generic_readlink, .readlink = generic_readlink,
.follow_link = xfs_vn_follow_link, .follow_link = xfs_vn_follow_link,
.put_link = xfs_vn_put_link, .put_link = kfree_put_link,
.get_acl = xfs_get_acl, .get_acl = xfs_get_acl,
.getattr = xfs_vn_getattr, .getattr = xfs_vn_getattr,
.setattr = xfs_vn_setattr, .setattr = xfs_vn_setattr,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment