summaryrefslogtreecommitdiffstats
path: root/xlators/features/quota/src/quota.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/quota/src/quota.c')
-rw-r--r--xlators/features/quota/src/quota.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c
index 6f28c8981c2..b68689ed91a 100644
--- a/xlators/features/quota/src/quota.c
+++ b/xlators/features/quota/src/quota.c
@@ -618,6 +618,10 @@ quota_lookup_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
}
}
+ if (local->limit != ctx->limit) {
+ ctx->limit = local->limit;
+ }
+
ctx->buf = *buf;
if (!(IA_ISREG (buf->ia_type) || IA_ISLNK (buf->ia_type))) {