summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/cluster/afr/src/afr-common.c')
-rw-r--r--xlators/cluster/afr/src/afr-common.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/xlators/cluster/afr/src/afr-common.c b/xlators/cluster/afr/src/afr-common.c
index 8c04cfbff2f..f4d74c57a5d 100644
--- a/xlators/cluster/afr/src/afr-common.c
+++ b/xlators/cluster/afr/src/afr-common.c
@@ -1948,12 +1948,11 @@ afr_lookup_sh_metadata_wrap (void *opaque)
if (first == -1)
goto out;
- inode = afr_inode_link (local->inode,&replies[first].poststat);
+ inode = inode_link (local->inode, NULL, NULL, &replies[first].poststat);
if(!inode)
goto out;
afr_selfheal_metadata (frame, this, inode);
- inode_forget (inode, 1);
inode_unref (inode);
afr_local_replies_wipe (local, this->private);
@@ -4834,10 +4833,8 @@ out:
AFR_STACK_UNWIND (getxattr, frame, ret, op_errno, dict, NULL);
if (dict)
dict_unref (dict);
- if (inode) {
- inode_forget (inode, 1);
+ if (inode)
inode_unref (inode);
- }
GF_FREE (substr);
return ret;
}