summaryrefslogtreecommitdiffstats
path: root/xlators/features/marker/src/marker.c
diff options
context:
space:
mode:
authorvmallika <vmallika@redhat.com>2015-09-29 15:27:47 +0530
committerRaghavendra G <rgowdapp@redhat.com>2015-09-30 23:29:50 -0700
commit7f0bb9ca8281d022e37e1567ae24ce08436d4cd8 (patch)
treeeb57cdc713f6cffd19fe4ce6e9d36be933de8e62 /xlators/features/marker/src/marker.c
parent51a23f4d0ac38982fcde86000819f64a42d39462 (diff)
quota/marker: marker code cleanup
marker is re-factored with syncop approach, remove unused old code Change-Id: I36e670e63b6c166db5e64d3149d2978981e2f7c2 BUG: 1240581 Signed-off-by: vmallika <vmallika@redhat.com> Reviewed-on: http://review.gluster.org/11560 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
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 096b749310d..4e4a280ba31 100644
--- a/xlators/features/marker/src/marker.c
+++ b/xlators/features/marker/src/marker.c
@@ -2992,15 +2992,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");
@@ -3071,13 +3064,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");