summaryrefslogtreecommitdiffstats
path: root/xlators/features/quota
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/quota')
-rw-r--r--xlators/features/quota/src/quota.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c
index 1a8aa87a2f6..03c4a69fe68 100644
--- a/xlators/features/quota/src/quota.c
+++ b/xlators/features/quota/src/quota.c
@@ -1371,7 +1371,7 @@ do_quota_check_limit (call_frame_t *frame, inode_t *inode, xlator_t *this,
if (parent == NULL)
goto out;
- new_frame = create_frame (this, this->ctx->pool);
+ new_frame = copy_frame (frame);
if (new_frame == NULL)
goto out;
@@ -1379,7 +1379,6 @@ do_quota_check_limit (call_frame_t *frame, inode_t *inode, xlator_t *this,
if (new_local == NULL)
goto out;
- new_frame->root->uid = new_frame->root->gid = 0;
new_frame->local = new_local;
new_local->par_frame = frame;