summaryrefslogtreecommitdiffstats
path: root/xlators/features/marker/src/marker.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/marker/src/marker.c')
-rw-r--r--xlators/features/marker/src/marker.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/xlators/features/marker/src/marker.c b/xlators/features/marker/src/marker.c
index 66bdfbcaebd..c80237a3684 100644
--- a/xlators/features/marker/src/marker.c
+++ b/xlators/features/marker/src/marker.c
@@ -2995,15 +2995,8 @@ reconfigure (xlator_t *this, dict_t *options)
data = dict_get (options, "quota");
if (data) {
ret = gf_string2boolean (data->data, &flag);
- if (ret == 0 && flag == _gf_true) {
- ret = init_quota_priv (this);
- if (ret < 0) {
- gf_log (this->name, GF_LOG_WARNING,
- "failed to initialize quota private");
- } else {
- priv->feature_enabled |= GF_QUOTA;
- }
- }
+ if (ret == 0 && flag == _gf_true)
+ priv->feature_enabled |= GF_QUOTA;
}
data = dict_get (options, "inode-quota");
@@ -3074,13 +3067,8 @@ init (xlator_t *this)
data = dict_get (options, "quota");
if (data) {
ret = gf_string2boolean (data->data, &flag);
- if (ret == 0 && flag == _gf_true) {
- ret = init_quota_priv (this);
- if (ret < 0)
- goto err;
-
+ if (ret == 0 && flag == _gf_true)
priv->feature_enabled |= GF_QUOTA;
- }
}
data = dict_get (options, "inode-quota");