xfs: switch to kfree_put_link()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 30 Nov 2013 03:54:55 +0000 (22:54 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 25 Jan 2014 08:13:00 +0000 (03:13 -0500)
don't bother open-coding it...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/xfs/xfs_iops.c

index 104455b8046c4bd9ea11855c917b7b46c4573361..a3dad17b135159602e15ad767d5dd57cf6cdaeeb 100644 (file)
@@ -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,
@@ -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,