summaryrefslogtreecommitdiffstats
path: root/xlators/features/ganesha
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/ganesha')
-rw-r--r--xlators/features/ganesha/src/ganesha.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/xlators/features/ganesha/src/ganesha.c b/xlators/features/ganesha/src/ganesha.c
index f034fc00d46..a3d392e3ecf 100644
--- a/xlators/features/ganesha/src/ganesha.c
+++ b/xlators/features/ganesha/src/ganesha.c
@@ -18,6 +18,22 @@
#include "ganesha-mem-types.h"
+int32_t
+mem_acct_init (xlator_t *this)
+{
+ int ret = -1;
+
+ if (!this)
+ return ret;
+
+ ret = xlator_mem_acct_init (this, gf_ganesha_mt_end + 1);
+
+ if (ret != 0)
+ gf_log (this->name, GF_LOG_WARNING, "Memory accounting"
+ "init failed");
+
+ return ret;
+}
int32_t
init (xlator_t *this)