summaryrefslogtreecommitdiffstats
path: root/xlators/performance
diff options
context:
space:
mode:
authorPranith Kumar K <pranithk@gluster.com>2012-02-21 12:45:24 +0530
committerVijay Bellur <vijay@gluster.com>2012-02-20 23:22:12 -0800
commit6d19136de7af9135dd23662f18c3ee544a2888da (patch)
tree444ebeb124d4edd50954127fa5d5c2eac47079e4 /xlators/performance
parent81ab6622d403558cd6f31efeb535fe886d3beeaa (diff)
performance/md-cache: Add mem_acct_init
Change-Id: I1b91ee0bde160762548c39646ceb96c3c778e06c BUG: 795651 Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Reviewed-on: http://review.gluster.com/2778 Reviewed-by: Vijay Bellur <vijay@gluster.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/performance')
-rw-r--r--xlators/performance/md-cache/src/md-cache.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/xlators/performance/md-cache/src/md-cache.c b/xlators/performance/md-cache/src/md-cache.c
index dd9a8d6d09a..e6bb54d8ecd 100644
--- a/xlators/performance/md-cache/src/md-cache.c
+++ b/xlators/performance/md-cache/src/md-cache.c
@@ -1692,6 +1692,14 @@ out:
return 0;
}
+int32_t
+mem_acct_init (xlator_t *this)
+{
+ int ret = -1;
+
+ ret = xlator_mem_acct_init (this, gf_mdc_mt_end + 1);
+ return ret;
+}
int
init (xlator_t *this)