Whamcloud - gitweb
LU-4017 quota: cleanup codes of quota for new type
[fs/lustre-release.git] / lustre / osc / osc_request.c
index 4060d23..114b6ce 100644 (file)
@@ -1386,8 +1386,8 @@ static int osc_brw_fini_request(struct ptlrpc_request *req, int rc)
 
         /* set/clear over quota flag for a uid/gid */
         if (lustre_msg_get_opc(req->rq_reqmsg) == OST_WRITE &&
-            body->oa.o_valid & (OBD_MD_FLUSRQUOTA | OBD_MD_FLGRPQUOTA)) {
-               unsigned int qid[LL_MAXQUOTAS] =
+            body->oa.o_valid & (OBD_MD_FLALLQUOTA)) {
+               unsigned qid[LL_MAXQUOTAS] =
                                        {body->oa.o_uid, body->oa.o_gid};
 
                CDEBUG(D_QUOTA, "setdq for [%u %u] with valid %#llx, flags %x\n",