From 0e7875dbf8f70904257725fd4d2be30333da84a2 Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Fri, 30 Oct 2009 03:43:54 +0000 Subject: core: Use parent for condition to create dentry not name Signed-off-by: Shehjar Tikoo Signed-off-by: Anand V. Avati BUG: 348 (touch on booster segfaults) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=348 --- libglusterfs/src/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libglusterfs') diff --git a/libglusterfs/src/inode.c b/libglusterfs/src/inode.c index b77b8fbd49a..dbe421c5053 100644 --- a/libglusterfs/src/inode.c +++ b/libglusterfs/src/inode.c @@ -670,7 +670,7 @@ __inode_link (inode_t *inode, inode_t *parent, const char *name, } /* use only link_inode beyond this point */ - if (name) { + if (parent) { old_dentry = __dentry_grep (table, parent, name); if (!old_dentry || old_dentry->inode != link_inode) { -- cgit