summaryrefslogtreecommitdiffstats
path: root/xlators/protocol
diff options
context:
space:
mode:
authorKrishna Srinivas <ksriniva@redhat.com>2012-04-30 16:43:16 +0530
committerAnand Avati <avati@redhat.com>2012-05-05 12:42:31 -0700
commit9bd1b291e3e107250b38d05702df7cd751382bdc (patch)
treead1a4e0810d7063112c09782c5665fde7e375cc2 /xlators/protocol
parent298ff93eab48de51a1bd77e4b12e88a7add1d174 (diff)
libglusterfs/inode.c: do not link the inode in the dentry cache for "." and ".."
Change-Id: I18c2e090c1ca64f47ce70dc63c9f73ea7def2f86 BUG: 810828 Signed-off-by: Krishna Srinivas <ksriniva@redhat.com> Reviewed-on: http://review.gluster.com/3220 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/protocol')
-rw-r--r--xlators/protocol/server/src/server3_1-fops.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xlators/protocol/server/src/server3_1-fops.c b/xlators/protocol/server/src/server3_1-fops.c
index 0e252b5c3..10dddd79b 100644
--- a/xlators/protocol/server/src/server3_1-fops.c
+++ b/xlators/protocol/server/src/server3_1-fops.c
@@ -120,8 +120,10 @@ server_lookup_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
if (!__is_root_gfid (inode->gfid)) {
link_inode = inode_link (inode, state->loc.parent,
state->loc.name, stbuf);
- inode_lookup (link_inode);
- inode_unref (link_inode);
+ if (link_inode) {
+ inode_lookup (link_inode);
+ inode_unref (link_inode);
+ }
}
} else {
if (state->is_revalidate && op_errno == ENOENT) {