summaryrefslogtreecommitdiffstats
path: root/xlators/features/qemu-block/src/qemu-block.c
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2015-05-29 16:28:10 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2015-06-12 01:57:50 -0700
commitc6715cfb480583aab954ed2a0ddb8de0d1326346 (patch)
tree0622a24eaf08fd309cb8d052a8b597ccfc7bd87f /xlators/features/qemu-block/src/qemu-block.c
parent27bcffc6b698b1ef16ef02a61109897e38faa54d (diff)
features/qemu-block: Don't unref root inode
Backport of http://review.gluster.org/11002 http://review.gluster.org/11076 Root inode doesn't participate in ref/unref. Don't do it in fini as by the time fini is called itable would be destroyed. BUG: 1226272 Change-Id: I776d8e9359c8b51763d9d2588a80311434a0ede3 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/11047 Tested-by: Gluster Build System <jenkins@build.gluster.com> Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Poornima G <pgurusid@redhat.com>
Diffstat (limited to 'xlators/features/qemu-block/src/qemu-block.c')
-rw-r--r--xlators/features/qemu-block/src/qemu-block.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/features/qemu-block/src/qemu-block.c b/xlators/features/qemu-block/src/qemu-block.c
index 8cc78ff165c..371ca8723fb 100644
--- a/xlators/features/qemu-block/src/qemu-block.c
+++ b/xlators/features/qemu-block/src/qemu-block.c
@@ -1088,8 +1088,8 @@ fini (xlator_t *this)
this->private = NULL;
- if (conf->root_inode)
- inode_unref(conf->root_inode);
+ /* No need to do inode_unref of conf->root_inode as ref/unref doesn't
+ * apply for it*/
GF_FREE (conf);
return;