* GPL HEADER END
*/
/*
- * Copyright (c) 2012, Intel Corporation.
+ * Copyright (c) 2012, 2014, Intel Corporation.
*/
/*
* lustre/obdclass/local_storage.c
struct ls_device {
struct dt_device ls_top_dev;
/* all initialized ls_devices on this node linked by this */
- cfs_list_t ls_linkage;
+ struct list_head ls_linkage;
/* how many handle's reference this local storage */
atomic_t ls_refcount;
/* underlaying OSD device */
struct dt_device *ls_osd;
/* list of all local OID storages */
- cfs_list_t ls_los_list;
+ struct list_head ls_los_list;
struct mutex ls_los_mutex;
};
#define LOS_MAGIC 0xdecafbee
+/**
+ * Used in __local_file_create() for object lock role
+ **/
+enum los_object_role {
+ LOS_PARENT,
+ LOS_CHILD,
+};
+
#endif