- unsigned long lqe_enforced:1,/* quota enforced or not */
- lqe_uptodate:1,/* successfully read from disk */
- lqe_edquot:1, /* id out of quota space on QMT */
- lqe_gl:1, /* glimpse is in progress */
- lqe_nopreacq:1;/* pre-acquire disabled */
+ unsigned long lqe_enforced:1, /* quota enforced or not */
+ lqe_uptodate:1, /* successfully read from disk */
+ lqe_edquot:1, /* id out of quota space on QMT */
+ lqe_gl:1, /* glimpse is in progress */
+ lqe_nopreacq:1, /* pre-acquire disabled */
+ lqe_is_default:1, /* the default quota is used */
+ lqe_is_global:1; /* lqe belongs to global pool "0x0"*/
+
+ struct lqe_glbl_data *lqe_glbl_data;
+};
+
+#define lqe_qtype(lqe) (lqe->lqe_site->lqs_qtype)
+#define lqe_rtype(lqe) (lqe2qpi(lqe)->qpi_rtype)
+
+struct lqe_glbl_entry {
+ __u64 lge_qunit;
+ unsigned long lge_edquot:1,
+ /* true when minimum qunit is set */
+ lge_qunit_set:1,
+ /* qunit or edquot is changed - need
+ * to send glimpse to appropriate slave */
+ lge_qunit_nu:1,
+ lge_edquot_nu:1;
+};
+
+struct lqe_glbl_data {
+ struct lqe_glbl_entry *lqeg_arr;
+ /* number of initialised entries */
+ int lqeg_num_used;
+ /* number of allocated entries */
+ int lqeg_num_alloc;