aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-09-16 10:30:04 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-10-24 23:34:49 -0400
commit87dc800be2499128efb3a6f059d75dc8e1e6d503 (patch)
tree6a5aa6bdc7dcb652f8435d4044021c7b9fe9bbc9 /fs/gfs2
parent12f38872224542c4683ab72a88394fc89b87ca32 (diff)
new helper: kfree_put_link()
duplicated to hell and back... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/gfs2')
-rw-r--r--fs/gfs2/inode.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
index ced3257f06e8..d2384f7c53e1 100644
--- a/fs/gfs2/inode.c
+++ b/fs/gfs2/inode.c
@@ -1506,13 +1506,6 @@ out:
1506 return NULL; 1506 return NULL;
1507} 1507}
1508 1508
1509static void gfs2_put_link(struct dentry *dentry, struct nameidata *nd, void *p)
1510{
1511 char *s = nd_get_link(nd);
1512 if (!IS_ERR(s))
1513 kfree(s);
1514}
1515
1516/** 1509/**
1517 * gfs2_permission - 1510 * gfs2_permission -
1518 * @inode: The inode 1511 * @inode: The inode
@@ -1864,7 +1857,7 @@ const struct inode_operations gfs2_dir_iops = {
1864const struct inode_operations gfs2_symlink_iops = { 1857const struct inode_operations gfs2_symlink_iops = {
1865 .readlink = generic_readlink, 1858 .readlink = generic_readlink,
1866 .follow_link = gfs2_follow_link, 1859 .follow_link = gfs2_follow_link,
1867 .put_link = gfs2_put_link, 1860 .put_link = kfree_put_link,
1868 .permission = gfs2_permission, 1861 .permission = gfs2_permission,
1869 .setattr = gfs2_setattr, 1862 .setattr = gfs2_setattr,
1870 .getattr = gfs2_getattr, 1863 .getattr = gfs2_getattr,