struct qsd_type_info;
struct qsd_fsinfo;
+extern struct kmem_cache *upd_kmem;
+
/*
* A QSD instance implements quota enforcement support for a given OSD.
* The instance can be created via qsd_init() and then freed with qsd_fini().
/* name of service which created this qsd instance */
char qsd_svname[MAX_OBD_NAME];
- /* pool ID is always 0 for now */
- int qsd_pool_id;
-
/* dt_device associated with this qsd instance */
struct dt_device *qsd_dev;
static inline
struct qsd_thread_info *qsd_info(const struct lu_env *env)
{
- struct qsd_thread_info *info;
-
- info = lu_context_key_get(&env->le_ctx, &qsd_thread_key);
- if (info == NULL) {
- lu_env_refill((struct lu_env *)env);
- info = lu_context_key_get(&env->le_ctx, &qsd_thread_key);
- }
- LASSERT(info);
- return info;
+ return lu_env_info(env, &qsd_thread_key);
}
/* helper function to check whether a given quota type is enabled */