Whamcloud - gitweb
LU-4017 quota: cleanup to improve quota codes
[fs/lustre-release.git] / lustre / quota / lquota_lib.c
index 382f94d..2b94391 100644 (file)
@@ -186,8 +186,7 @@ int lquotactl_slv(const struct lu_env *env, struct dt_device *dev,
                RETURN(-EOPNOTSUPP);
        }
 
-       if (oqctl->qc_type < 0 || oqctl->qc_type >= MAXQUOTAS)
-               /* no support for directory quota yet */
+       if (oqctl->qc_type < 0 || oqctl->qc_type >= LL_MAXQUOTAS)
                RETURN(-EOPNOTSUPP);
 
        /* qc_id is a 32-bit field while a key has 64 bits */