summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
Diffstat (limited to 'xlators')
-rw-r--r--xlators/features/quota/src/quota.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c
index 7d5f74e9cc8..a5ff2373fb6 100644
--- a/xlators/features/quota/src/quota.c
+++ b/xlators/features/quota/src/quota.c
@@ -3233,9 +3233,10 @@ reconfigure (xlator_t *this, dict_t *options)
LOCK (&priv->lock);
{
- list_for_each_entry (limit, &priv->limit_head, limit_list) {
- top = ((glusterfs_ctx_t *)this->ctx)->active->top;
+ top = ((glusterfs_ctx_t *)this->ctx)->active->top;
+ GF_ASSERT (top);
+ list_for_each_entry (limit, &priv->limit_head, limit_list) {
__quota_reconfigure (this, top->itable, limit);
}