Whamcloud - gitweb
LU-9339 quota: Replace MAXQUOTAS usage with LL_MAXQUOTAS 48/26648/3
authorOleg Drokin <oleg.drokin@intel.com>
Sun, 16 Apr 2017 06:29:34 +0000 (02:29 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 18 Apr 2017 17:19:36 +0000 (17:19 +0000)
This is especially important when kernel idea of
MAXQUOTAS is smaller than LL_MAXQUOTAS

Change-Id: I0fb8b15a0bab34993e9570efb8de548955962590
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-on: https://review.whamcloud.com/26648
Tested-by: Jenkins
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
lustre/quota/qmt_internal.h

index c3f7fd6..6b1892e 100644 (file)
@@ -116,18 +116,18 @@ struct qmt_pool_info {
 
        /* pointer to dt object associated with global indexes for both user
         * and group quota */
 
        /* pointer to dt object associated with global indexes for both user
         * and group quota */
-       struct dt_object        *qpi_glb_obj[MAXQUOTAS];
+       struct dt_object        *qpi_glb_obj[LL_MAXQUOTAS];
 
        /* A pool supports two different quota types: user and group quota.
         * Each quota type has its own global index and lquota_entry hash table.
         */
 
        /* A pool supports two different quota types: user and group quota.
         * Each quota type has its own global index and lquota_entry hash table.
         */
-       struct lquota_site      *qpi_site[MAXQUOTAS];
+       struct lquota_site      *qpi_site[LL_MAXQUOTAS];
 
        /* number of slaves registered for each quota types */
 
        /* number of slaves registered for each quota types */
-       int                      qpi_slv_nr[MAXQUOTAS];
+       int                      qpi_slv_nr[LL_MAXQUOTAS];
 
        /* reference on lqe (ID 0) storing grace time. */
 
        /* reference on lqe (ID 0) storing grace time. */
-       struct lquota_entry     *qpi_grace_lqe[MAXQUOTAS];
+       struct lquota_entry     *qpi_grace_lqe[LL_MAXQUOTAS];
 
        /* procfs root directory for this pool */
        struct proc_dir_entry   *qpi_proc;
 
        /* procfs root directory for this pool */
        struct proc_dir_entry   *qpi_proc;