Whamcloud - gitweb
LU-11164 ldlm: pass env to lvbo methods
[fs/lustre-release.git] / lustre / target / tgt_internal.h
index bc9cbbc..5374abc 100644 (file)
@@ -21,7 +21,7 @@
  * GPL HEADER END
  */
 /*
- * Copyright (c) 2012, 2016, Intel Corporation.
+ * Copyright (c) 2012, 2017, Intel Corporation.
  */
 /*
  * lustre/target/tgt_internal.h
@@ -35,7 +35,6 @@
 #define _TG_INTERNAL_H
 
 #include <lustre_net.h>
-#include <lustre/lustre_idl.h>
 #include <lu_target.h>
 #include <lustre_export.h>
 #include <lustre_fid.h>
 #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 +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;
 };