+ /* Lock to protect object's IO epoch. */
+ struct mutex mot_ioepoch_mutex;
+ /* Lock to protect create_data */
+ struct mutex mot_lov_mutex;
+};
+
+enum mdt_object_flags {
+ /** SOM attributes are changed. */
+ MOF_SOM_CHANGE = (1 << 0),
+ /**
+ * The SOM recovery state for mdt object.
+ * This state is an in-memory equivalent of an absent SOM EA, used
+ * instead of invalidating SOM EA while IOEpoch is still opened when
+ * a client eviction occurs or a client fails to obtain SOM attributes.
+ * It indicates that the last IOEpoch holder will need to obtain SOM
+ * attributes under [0;EOF] extent lock to flush all the client's
+ * cached of evicted from MDS clients (but not necessary evicted from
+ * OST) before taking ost attributes.
+ */
+ MOF_SOM_RECOV = (1 << 1),
+ /** File has been just created. */
+ MOF_SOM_CREATED = (1 << 2),
+ /** lov object has been created. */
+ MOF_LOV_CREATED = (1 << 3),