summaryrefslogtreecommitdiffstats
path: root/xlators/features
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features')
-rw-r--r--xlators/features/marker/src/marker.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/xlators/features/marker/src/marker.c b/xlators/features/marker/src/marker.c
index b5e41523747..4494595cc39 100644
--- a/xlators/features/marker/src/marker.c
+++ b/xlators/features/marker/src/marker.c
@@ -2714,6 +2714,10 @@ marker_lookup (call_frame_t *frame, xlator_t *this,
priv = this->private;
+ xattr_req = xattr_req ? dict_ref (xattr_req) : dict_new ();
+ if (!xattr_req)
+ goto err;
+
if (priv->feature_enabled == 0)
goto wind;
@@ -2727,15 +2731,21 @@ marker_lookup (call_frame_t *frame, xlator_t *this,
if (ret == -1)
goto err;
- if ((priv->feature_enabled & GF_QUOTA) && xattr_req)
+ if ((priv->feature_enabled & GF_QUOTA))
mq_req_xattr (this, loc, xattr_req, NULL);
wind:
STACK_WIND (frame, marker_lookup_cbk, FIRST_CHILD(this),
FIRST_CHILD(this)->fops->lookup, loc, xattr_req);
+
+ dict_unref (xattr_req);
+
return 0;
err:
STACK_UNWIND_STRICT (lookup, frame, -1, ENOMEM, NULL, NULL, NULL, NULL);
+ if (xattr_req)
+ dict_unref (xattr_req);
+
return 0;
}
@@ -2775,8 +2785,6 @@ marker_build_ancestry_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
continue;
}
- mq_xattr_state (this, &loc, entry->dict, entry->d_stat);
-
inode_unref (parent);
parent = inode_ref (entry->inode);
loc_wipe (&loc);