#include <obd.h>
#include <lustre_fld.h>
#include <md_object.h>
-#include <linux/lustre_acl.h>
+#include <lustre_acl.h>
struct cmm_device {
/* other MD servers in cluster */
mdsno_t cmm_local_num;
__u32 cmm_tgt_count;
- struct list_head cmm_targets;
- spinlock_t cmm_tgt_guard;
+ cfs_list_t cmm_targets;
+ cfs_spinlock_t cmm_tgt_guard;
cfs_proc_dir_entry_t *cmm_proc_entry;
struct lprocfs_stats *cmm_stats;
};
CMM_INITIALIZED = 1 << 0
};
-static inline struct md_device_operations *cmm_child_ops(struct cmm_device *d)
+static inline const struct md_device_operations *
+cmm_child_ops(struct cmm_device *d)
{
- return (d->cmm_child->md_ops);
+ return d->cmm_child->md_ops;
}
static inline struct cmm_device *md2cmm_dev(struct md_device *m)
}
int cmm_upcall(const struct lu_env *env, struct md_device *md,
- enum md_upcall_event ev);
+ enum md_upcall_event ev, void *data);
#ifdef HAVE_SPLIT_SUPPORT