From 0f8ca69b91db3e2f95aaf4e6b767334a497dd471 Mon Sep 17 00:00:00 2001
From: Niu Yawei <niu@whamcloud.com>
Date: Sun, 24 Jul 2011 22:20:36 -0700
Subject: [PATCH] LU-530 group quotas not enforced

In filter_quota_getflag(), we shouldn't break the loop when user quota not
enabled, otherwise, the group quota check will be skipped and the out of quota
flag will not be returned to client at the end.

Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: Ibf6f1fe3a550ce1f4b3d627fe24ca4484e754a41
---
 lustre/quota/quota_interface.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lustre/quota/quota_interface.c b/lustre/quota/quota_interface.c
index dc6f6da..c95329a 100644
--- a/lustre/quota/quota_interface.c
+++ b/lustre/quota/quota_interface.c
@@ -197,7 +197,7 @@ static int filter_quota_getflag(struct obd_device *obd, struct obdo *oa)
                                        qctxt, 0);
                 if (lqs == NULL || IS_ERR(lqs)) {
                         rc = PTR_ERR(lqs);
-                        break;
+                        continue;
                 } else {
                         spin_lock(&lqs->lqs_lock);
                         if (lqs->lqs_bunit_sz <= qctxt->lqc_sync_blk) {
-- 
1.6.2.2