/* Print debug information about a given lquota entry */
void (*lqe_debug)(struct lquota_entry *, void *,
- struct libcfs_debug_msg_data *, const char *,
- va_list);
+ struct libcfs_debug_msg_data *,
+ struct va_format *vaf);
};
/* Per-ID information specific to the quota master target */
static inline
struct lquota_thread_info *lquota_info(const struct lu_env *env)
{
- struct lquota_thread_info *info;
-
- info = lu_context_key_get(&env->le_ctx, &lquota_thread_key);
- if (info == NULL) {
- lu_env_refill((struct lu_env *)env);
- info = lu_context_key_get(&env->le_ctx, &lquota_thread_key);
- }
- LASSERT(info);
- return info;
+ return lu_env_info(env, &lquota_thread_key);
}
#define req_is_acq(flags) ((flags & QUOTA_DQACQ_FL_ACQ) != 0)
/* lquota_lib.c */
struct dt_object *acct_obj_lookup(const struct lu_env *, struct dt_device *,
int);
-void lquota_generate_fid(struct lu_fid *, int, int, int);
-int lquota_extract_fid(const struct lu_fid *, int *, int *, int *);
+void lquota_generate_fid(struct lu_fid *, int, int);
+int lquota_extract_fid(const struct lu_fid *, int *, int *);
const struct dt_index_features *glb_idx_feature(struct lu_fid *);
/* lquota_entry.c */