summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2009-10-30 03:43:54 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-30 03:37:50 -0700
commit0e7875dbf8f70904257725fd4d2be30333da84a2 (patch)
tree28752c17def04ed36a414a8280424a6e323fccf7 /libglusterfs
parent44f6b7a54224dde7e1663f435f05a6a5cac25a7b (diff)
core: Use parent for condition to create dentry not name
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 348 (touch on booster segfaults) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=348
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/inode.c2
1 files changed, 1 insertions, 1 deletions
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) {