Whamcloud - gitweb
LU-7659 mdc: expose changelog through char devices
[fs/lustre-release.git] / lustre / target / tgt_internal.h
index 9a1aeb3..bc9cbbc 100644 (file)
@@ -21,7 +21,7 @@
  * GPL HEADER END
  */
 /*
- * Copyright (c) 2012, 2015, Intel Corporation.
+ * Copyright (c) 2012, 2016, Intel Corporation.
  */
 /*
  * lustre/target/tgt_internal.h
@@ -77,18 +77,13 @@ struct tgt_thread_info {
                        struct l_wait_info tti_wait_info;
                } rdpg;
                struct {
-                       /* for out_read()      */
-                       struct lu_rdbuf     tti_rdbuf;
-                       /* for tgt_sendpage()      */
-                       struct l_wait_info tti_wait_info;
-               } rdbuf;
-               struct {
                        struct dt_object_format    tti_update_dof;
                        struct object_update_reply *tti_update_reply;
                        struct object_update       *tti_update;
                        int                        tti_update_reply_index;
                        struct obdo                tti_obdo;
                        struct dt_object           *tti_dt_object;
+                       struct l_wait_info tti_wait_info;
                } update;
        } tti_u;
        struct lfsck_request tti_lr;
@@ -243,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);
@@ -292,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 */