summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/inode.c
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2010-12-06 23:28:19 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-12-06 22:18:55 -0800
commitfceef36419503f332ffd1fccdcb03da86cf9cdb3 (patch)
tree101b0db3c25fa72bbe9bbf4d5ff42b0b69ca3d51 /libglusterfs/src/inode.c
parentcaa77054005ea9ca9b806006103cd3f7eed10c7d (diff)
inode: fix crash in logging during cyclic loop detection
Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2196 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2196
Diffstat (limited to 'libglusterfs/src/inode.c')
-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);