Patchwork [BUG:2117] Remove spurious inode_ref call on parent dir in fuse_create_cbk

login
register
Submitter shishir gowda
Date 2010-11-18 05:06:06
Message ID <20101118050606.GA12794@dev.gluster.com>
Download mbox | patch
Permalink /patch/5739/
State Accepted
Headers show

Comments

shishir gowda - 2010-11-18 05:06:06
The additional ref caused leaks. The ref is taken in __dentry_create
called from inode_link

Signed-off-by: shishir gowda <shishirng@gluster.com>
---
 xlators/mount/fuse/src/fuse-bridge.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

Patch

diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
index dfa6b89..6ce2e12 100644
--- a/xlators/mount/fuse/src/fuse-bridge.c
+++ b/xlators/mount/fuse/src/fuse-bridge.c
@@ -1471,7 +1471,6 @@  fuse_create_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
 
                 inode_lookup (linked_inode);
 
-                inode_ref (state->loc.parent);
                 inode_unref (linked_inode);
 
                 fd_ref (fd);