diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-11-29 22:54:55 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-01-25 03:13:00 -0500 |
commit | 96c8c442117859cd95b5b57836ff374ff43f0564 (patch) | |
tree | 8d76bc2fb3321aa60dd632d21532c9530d7bc2e6 /fs/xfs | |
parent | b22e8fedc19588864a6ba0acefbbed06f05ba713 (diff) |
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.c | 14 |
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( | |||
391 | return NULL; | 391 | return NULL; |
392 | } | 392 | } |
393 | 393 | ||
394 | STATIC void | ||
395 | xfs_vn_put_link( | ||
396 | struct dentry *dentry, | ||
397 | struct nameidata *nd, | ||
398 | void *p) | ||
399 | { | ||
400 | char *s = nd_get_link(nd); | ||
401 | |||
402 | if (!IS_ERR(s)) | ||
403 | kfree(s); | ||
404 | } | ||
405 | |||
406 | STATIC int | 394 | STATIC int |
407 | xfs_vn_getattr( | 395 | xfs_vn_getattr( |
408 | struct vfsmount *mnt, | 396 | struct vfsmount *mnt, |
@@ -1118,7 +1106,7 @@ static const struct inode_operations xfs_dir_ci_inode_operations = { | |||
1118 | static const struct inode_operations xfs_symlink_inode_operations = { | 1106 | static const struct inode_operations xfs_symlink_inode_operations = { |
1119 | .readlink = generic_readlink, | 1107 | .readlink = generic_readlink, |
1120 | .follow_link = xfs_vn_follow_link, | 1108 | .follow_link = xfs_vn_follow_link, |
1121 | .put_link = xfs_vn_put_link, | 1109 | .put_link = kfree_put_link, |
1122 | .get_acl = xfs_get_acl, | 1110 | .get_acl = xfs_get_acl, |
1123 | .getattr = xfs_vn_getattr, | 1111 | .getattr = xfs_vn_getattr, |
1124 | .setattr = xfs_vn_setattr, | 1112 | .setattr = xfs_vn_setattr, |