Whamcloud - gitweb
LU-11814 obdcalss: ensure LCT_QUIESCENT take sync
[fs/lustre-release.git] / lustre / quota / qsd_internal.h
index 18fc0c6..4dc3418 100644 (file)
@@ -84,7 +84,7 @@ struct qsd_instance {
        spinlock_t               qsd_adjust_lock;
 
        /* dedicated thread for updating slave index files. */
-       struct ptlrpc_thread     qsd_upd_thread;
+       struct task_struct      *qsd_upd_task;
 
        /* list of update tasks */
        struct list_head         qsd_upd_list;
@@ -155,7 +155,7 @@ struct qsd_qtype_info {
        struct lquota_site      *qqi_site;
 
        /* Reintegration thread */
-       struct ptlrpc_thread     qqi_reint_thread;
+       struct task_struct      *qqi_reint_task;
 
        /* statistics on operations performed by this slave */
        struct lprocfs_stats    *qqi_stats;
@@ -281,7 +281,7 @@ static inline int qsd_type_enabled(struct qsd_instance *qsd, int type)
        pool = qsd->qsd_is_md ? LQUOTA_RES_MD : LQUOTA_RES_DT;
        enabled = qsd->qsd_fsinfo->qfs_enabled[pool - LQUOTA_FIRST_RES];
 
-       return enabled & (1 << type);
+       return enabled & BIT(type);
 }
 
 /* helper function to set new qunit and compute associated qtune value */