Whamcloud - gitweb
LU-9205 tests: fix failures in CLIENTONLY mode
[fs/lustre-release.git] / lustre / target / tgt_internal.h
index c378d85..981e2ab 100644 (file)
 #include <lustre_req_layout.h>
 #include <lustre_sec.h>
 
-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 +85,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;
 };
 
@@ -285,4 +286,6 @@ 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 */