#ifndef __IMPORT_H
#define __IMPORT_H
-#ifdef __KERNEL__
#define IMP_INVALID 1
#define IMP_REPLAYABLE 2
-typedef int (*import_recover_t)(struct obd_import *imp, int phase);
+struct obd_import;
+typedef int (*import_recover_t)(struct obd_import *imp, int phase);
#include <linux/lustre_idl.h>
struct obd_import {
struct obd_device *imp_obd;
int imp_flags;
int imp_level;
- __u64 imp_last_xid;
- __u64 imp_last_bulk_xid;
__u64 imp_max_transno;
__u64 imp_peer_committed_transno;
- /* Protects flags, level, last_xid, *_list */
+ /* Protects flags, level, *_list */
spinlock_t imp_lock;
};
extern struct obd_import *class_conn2cliimp(struct lustre_handle *);
extern struct obd_import *class_conn2ldlmimp(struct lustre_handle *);
-#endif /* __KERNEL__ */
#endif /* __IMPORT_H */