summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/cluster/afr/src/afr-dir-write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-dir-write.c b/xlators/cluster/afr/src/afr-dir-write.c
index 1d7d3f195..8a6529bfb 100644
--- a/xlators/cluster/afr/src/afr-dir-write.c
+++ b/xlators/cluster/afr/src/afr-dir-write.c
@@ -1067,7 +1067,7 @@ afr_link (call_frame_t *frame, xlator_t *this,
local->cont.link.ino = oldloc->inode->ino;
if (oldloc->parent)
- local->cont.link.parent_ino = oldloc->parent->ino;
+ local->cont.link.parent_ino = newloc->parent->ino;
local->transaction.fop = afr_link_wind;
local->transaction.done = afr_link_done;