X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Flod%2Flod_internal.h;h=60617cff7e77e7749cc95a066b800d9c968648a0;hp=85c5007088190e2c30f05c8743c87ede9f36c4dd;hb=4f53536d002c13886210b672b657795baa067144;hpb=b1f01a709ffe66d82f13ad421d319432d235c05b diff --git a/lustre/lod/lod_internal.h b/lustre/lod/lod_internal.h index 85c5007..60617cf 100644 --- a/lustre/lod/lod_internal.h +++ b/lustre/lod/lod_internal.h @@ -125,7 +125,8 @@ struct lod_tgt_desc { struct ptlrpc_thread *ltd_recovery_thread; unsigned long ltd_active:1,/* is this target up for requests */ ltd_activate:1,/* should target be activated */ - ltd_reap:1; /* should this target be deleted */ + ltd_reap:1, /* should this target be deleted */ + ltd_got_update_log:1; /* Already got update log */ }; #define TGT_PTRS 256 /* number of pointers at 1st level */ @@ -170,7 +171,8 @@ struct lod_device { int lod_connects; unsigned int lod_recovery_completed:1, lod_initialized:1, - lod_lmv_failout:1; + lod_lmv_failout:1, + lod_child_got_update_log:1; /* lov settings descriptor storing static information */ struct lov_desc lod_desc; @@ -301,6 +303,7 @@ struct lod_thread_info { struct lu_buf lti_linkea_buf; struct dt_insert_rec lti_dt_rec; struct llog_catid lti_cid; + struct llog_cookie lti_cookie; }; extern const struct lu_device_operations lod_lu_ops; @@ -360,12 +363,6 @@ static inline struct dt_object* lod_object_child(struct lod_object *o) struct dt_object, do_lu); } -static inline struct dt_object *dt_object_child(struct dt_object *o) -{ - return container_of0(lu_object_next(&(o)->do_lu), - struct dt_object, do_lu); -} - extern struct lu_context_key lod_thread_key; static inline struct lod_thread_info *lod_env_info(const struct lu_env *env)