From eeccafc72c95da83abeb51966d7eeeab02190899 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Thu, 4 Jun 2015 08:21:59 +0530 Subject: features/qemu-block: Add comment about root_inode handling This is handling the comment on 3.7 backport http://review.gluster.com/11047 Change-Id: I253a8e0bfebde63f25c839efd55ed3cc30e6cd9b BUG: 1226276 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/11076 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Poornima G --- xlators/features/qemu-block/src/qemu-block.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xlators/features/qemu-block/src/qemu-block.c b/xlators/features/qemu-block/src/qemu-block.c index 12bc2743756..9aa9f43ab19 100644 --- a/xlators/features/qemu-block/src/qemu-block.c +++ b/xlators/features/qemu-block/src/qemu-block.c @@ -1083,7 +1083,8 @@ fini (xlator_t *this) this->private = NULL; - conf->root_inode = NULL; + /* No need to do inode_unref of conf->root_inode as ref/unref doesn't + * apply for it*/ GF_FREE (conf); return; -- cgit