Whamcloud - gitweb
LU-14075 kernel: kernel update RHEL8.2 [4.18.0-193.28.1.el8_2]
[fs/lustre-release.git] / lustre / osc / osc_quota.c
index a0aaae7..4320ae4 100644 (file)
@@ -61,11 +61,11 @@ int osc_quota_chkdq(struct client_obd *cli, const unsigned int qid[])
                         * quota space on this OST */
                        CDEBUG(D_QUOTA, "chkdq found noquota for %s %d\n",
                               type == USRQUOTA ? "user" : "grout", qid[type]);
-                       RETURN(NO_QUOTA);
+                       RETURN(-EDQUOT);
                }
        }
 
-       RETURN(QUOTA_OK);
+       RETURN(0);
 }
 
 static inline u32 md_quota_flag(int qtype)