X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftarget%2Ftgt_internal.h;h=5374abcd1b787a6a7245521a54d1417bf0e71814;hb=e02cb40761ff8aae3df76c4210a345420b6d4ba1;hp=824a9c77a223f50e81a1f8b211df93375a2901e3;hpb=f0ff8fa3d8c6612b11004f01068ab590b11fc290;p=fs%2Flustre-release.git diff --git a/lustre/target/tgt_internal.h b/lustre/target/tgt_internal.h index 824a9c7..5374abc 100644 --- a/lustre/target/tgt_internal.h +++ b/lustre/target/tgt_internal.h @@ -21,7 +21,7 @@ * GPL HEADER END */ /* - * Copyright (c) 2012, 2015, Intel Corporation. + * Copyright (c) 2012, 2017, Intel Corporation. */ /* * lustre/target/tgt_internal.h @@ -35,7 +35,6 @@ #define _TG_INTERNAL_H #include -#include #include #include #include @@ -43,10 +42,10 @@ #include #include -extern int (*tgt_lfsck_in_notify)(const struct lu_env *env, - struct dt_device *key, - struct lfsck_request *lr, - struct thandle *th); +extern int (*tgt_lfsck_in_notify_local)(const struct lu_env *env, + struct dt_device *key, + struct lfsck_req_local *lrl, + struct thandle *th); /** * Common data shared by tg-level handlers. This is allocated per-thread to * reduce stack consumption. @@ -85,8 +84,9 @@ struct tgt_thread_info { struct dt_object *tti_dt_object; struct l_wait_info tti_wait_info; } update; + struct obd_statfs osfs; /* for obd_statfs() in OFD/MDT */ } tti_u; - struct lfsck_request tti_lr; + struct lfsck_req_local tti_lrl; struct dt_insert_rec tti_rec; }; @@ -238,10 +238,6 @@ const char *update_op_str(__u16 opcode); extern struct page *tgt_page_to_corrupt; -struct tgt_thread_big_cache { - struct niobuf_local local[PTLRPC_MAX_BRW_PAGES]; -}; - int tgt_server_data_init(const struct lu_env *env, struct lu_target *tgt); int tgt_txn_start_cb(const struct lu_env *env, struct thandle *th, void *cookie); @@ -287,4 +283,8 @@ int sub_thandle_trans_create(const struct lu_env *env, void distribute_txn_insert_by_batchid(struct top_multiple_thandle *new); int top_trans_create_tmt(const struct lu_env *env, struct top_thandle *top_th); + +void tgt_cancel_slc_locks(struct lu_target *tgt, __u64 transno); +void barrier_init(void); +void barrier_fini(void); #endif /* _TG_INTERNAL_H */