summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src')
-rw-r--r--libglusterfs/src/inode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libglusterfs/src/inode.c b/libglusterfs/src/inode.c
index 7ce3e5b95f5..18faf8d1b51 100644
--- a/libglusterfs/src/inode.c
+++ b/libglusterfs/src/inode.c
@@ -208,6 +208,8 @@ __is_dentry_cyclic (dentry_t *dentry)
ret = __foreach_ancestor_dentry (dentry, __check_cycle,
dentry->inode);
if (ret) {
+ inode = dentry->inode;
+
if (dentry->name)
name = dentry->name;
uuid_unparse (inode->gfid, uuidbuf);