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;
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 */
}
/* qsd_entry.c */
-extern struct lquota_entry_operations qsd_lqe_ops;
+extern const struct lquota_entry_operations qsd_lqe_ops;
int qsd_refresh_usage(const struct lu_env *, struct lquota_entry *);
int qsd_update_index(const struct lu_env *, struct qsd_qtype_info *,
union lquota_id *, bool, __u64, void *);