summaryrefslogtreecommitdiff
path: root/fs/xfs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-11-30 07:54:55 +0400
committerAl Viro <viro@zeniv.linux.org.uk>2014-01-25 12:13:00 +0400
commit96c8c442117859cd95b5b57836ff374ff43f0564 (patch)
tree8d76bc2fb3321aa60dd632d21532c9530d7bc2e6 /fs/xfs
parentb22e8fedc19588864a6ba0acefbbed06f05ba713 (diff)
downloadlinux-96c8c442117859cd95b5b57836ff374ff43f0564.tar.xz
xfs: switch to kfree_put_link()
don't bother open-coding it... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/xfs_iops.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c
index 104455b8046c..a3dad17b1351 100644
--- a/fs/xfs/xfs_iops.c
+++ b/fs/xfs/xfs_iops.c
@@ -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,