Skip to content

Commit

Permalink
xfs: switch to kfree_put_link()
Browse files Browse the repository at this point in the history
don't bother open-coding it...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Jan 25, 2014
1 parent b22e8fe commit 96c8c44
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions fs/xfs/xfs_iops.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,18 +391,6 @@ xfs_vn_follow_link(
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
xfs_vn_getattr(
struct vfsmount *mnt,
Expand Down Expand Up @@ -1118,7 +1106,7 @@ static const struct inode_operations xfs_dir_ci_inode_operations = {
static const struct inode_operations xfs_symlink_inode_operations = {
.readlink = generic_readlink,
.follow_link = xfs_vn_follow_link,
.put_link = xfs_vn_put_link,
.put_link = kfree_put_link,
.get_acl = xfs_get_acl,
.getattr = xfs_vn_getattr,
.setattr = xfs_vn_setattr,
Expand Down

0 comments on commit 96c8c44

Please sign in to comment.