*/
#include <obd_class.h>
-#include <lustre/lustre_idl.h>
#include <dt_object.h>
-#include <lustre_log_user.h>
+#include <uapi/linux/lustre/lustre_idl.h>
+#include <uapi/linux/lustre/lustre_log_user.h>
#define LOG_NAME_LIMIT(logname, name) \
snprintf(logname, sizeof(logname), "LOGS/%s", name)
int llog_cat_process(const struct lu_env *env, struct llog_handle *cat_llh,
llog_cb_t cb, void *data, int startcat, int startidx);
__u64 llog_cat_size(const struct lu_env *env, struct llog_handle *cat_llh);
+__u32 llog_cat_free_space(struct llog_handle *cat_llh);
int llog_cat_reverse_process(const struct lu_env *env,
struct llog_handle *cat_llh, llog_cb_t cb,
void *data);
int lgh_last_idx;
int lgh_cur_idx; /* used during llog_process */
__u64 lgh_cur_offset; /* used during llog_process */
- /* used during llog_osd_write_rec */
- __u64 lgh_write_offset;
- int lgh_max_size;
struct llog_ctxt *lgh_ctxt;
union {
struct plain_handle_data phd;
struct llog_operations *lgh_logops;
atomic_t lgh_refcount;
+ int lgh_max_size;
__u32 lgh_stale:1;
};