+
+ /* per quota ID information. All lquota entry are kept in a hash table
+ * and read from disk on cache miss. */
+ struct lquota_site *qqi_site;
+
+ /* Reintegration thread */
+ struct ptlrpc_thread qqi_reint_thread;
+
+ /* statistics on operations performed by this slave */
+ struct lprocfs_stats *qqi_stats;
+
+ /* deferred update for the global index copy */
+ cfs_list_t qqi_deferred_glb;
+ /* deferred update for the slave index copy */
+ cfs_list_t qqi_deferred_slv;
+
+ /* Various flags representing the current state of the slave for this
+ * quota type. */
+ unsigned long qqi_glb_uptodate:1, /* global index uptodate
+ with master */
+ qqi_slv_uptodate:1, /* slave index uptodate
+ with master */
+ qqi_reint:1; /* in reintegration or not */
+
+ /* A list of references to this instance, for debugging */
+ struct lu_ref qqi_reference;
+};
+
+/*
+ * Per-filesystem quota information
+ * Structure tracking quota enforcement status on a per-filesystem basis
+ */
+struct qsd_fsinfo {
+ /* filesystem name */
+ char qfs_name[MTI_NAME_MAXLEN];
+
+ /* what type of quota is enabled for each resource type. */
+ unsigned int qfs_enabled[LQUOTA_NR_RES];
+
+ /* list of all qsd_instance for this fs */
+ cfs_list_t qfs_qsd_list;
+ struct semaphore qfs_sem;
+
+ /* link to the global quota fsinfo list. */
+ cfs_list_t qfs_link;
+
+ /* reference count */
+ int qfs_ref;