cb8e9e
From 542bc8e5dc68a78802e212c53e198ee665a84319 Mon Sep 17 00:00:00 2001
cb8e9e
From: vmallika <vmallika@redhat.com>
cb8e9e
Date: Fri, 3 Jul 2015 17:32:04 +0530
cb8e9e
Subject: [PATCH 208/212] quota: fix mem leak in quota enforcer
cb8e9e
cb8e9e
This is a backport of review.gluster.org/#/c/11526/
cb8e9e
cb8e9e
Do inode_unref on parent
cb8e9e
cb8e9e
> Change-Id: I21d82eb8716dd73aa2dc291b3ae8506e4fb4ea8b
cb8e9e
> BUG: 1207735
cb8e9e
> Signed-off-by: vmallika <vmallika@redhat.com>
cb8e9e
cb8e9e
Change-Id: I534b2830357a0c79365cde70822c6863cc6c2ee3
cb8e9e
BUG: 1224177
cb8e9e
Signed-off-by: vmallika <vmallika@redhat.com>
cb8e9e
Reviewed-on: https://code.engineering.redhat.com/gerrit/52305
cb8e9e
Reviewed-by: Raghavendra Gowdappa <rgowdapp@redhat.com>
cb8e9e
Tested-by: Raghavendra Gowdappa <rgowdapp@redhat.com>
cb8e9e
---
cb8e9e
 xlators/features/quota/src/quota.c |    2 +-
cb8e9e
 1 files changed, 1 insertions(+), 1 deletions(-)
cb8e9e
cb8e9e
diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c
cb8e9e
index 3212cb0..df0572f 100644
cb8e9e
--- a/xlators/features/quota/src/quota.c
cb8e9e
+++ b/xlators/features/quota/src/quota.c
cb8e9e
@@ -955,8 +955,8 @@ quota_check_limit_continuation (struct list_head *parents, inode_t *inode,
cb8e9e
 
cb8e9e
         list_for_each_entry (entry, parents, next) {
cb8e9e
                 parent = inode_find (inode->table, entry->par);
cb8e9e
-
cb8e9e
                 quota_check_limit (frame, parent, this, NULL, NULL);
cb8e9e
+                inode_unref (parent);
cb8e9e
         }
cb8e9e
 
cb8e9e
 out:
cb8e9e
-- 
cb8e9e
1.7.1
cb8e9e