Whamcloud - gitweb
LU-1666 obdclass: reduce lock contention on coh_page_guard
[fs/lustre-release.git] / lustre / include / lu_target.h
index 4708c75..7773160 100644 (file)
@@ -66,13 +66,26 @@ struct lut_commit_cb {
         void     *lut_cb_data;
 };
 
-void lut_boot_epoch_update(struct lu_target *);
+void lut_boot_epoch_update(struct lu_target *lut);
 int lut_last_commit_cb_add(struct thandle *th, struct lu_target *lut,
-                           struct obd_export *exp, __u64 transno);
+                          struct obd_export *exp, __u64 transno);
 int lut_new_client_cb_add(struct thandle *th, struct obd_export *exp);
-int lut_init(const struct lu_env *, struct lu_target *,
-             struct obd_device *, struct dt_device *);
-void lut_fini(const struct lu_env *, struct lu_target *);
-int lut_client_alloc(struct obd_export *);
-void lut_client_free(struct obd_export *);
+int lut_init(const struct lu_env *env, struct lu_target *lut,
+            struct obd_device *obd, struct dt_device *dt);
+void lut_fini(const struct lu_env *env, struct lu_target *lut);
+int lut_client_alloc(struct obd_export *exp);
+void lut_client_free(struct obd_export *exp);
+int lut_client_del(const struct lu_env *env, struct obd_export *exp);
+int lut_client_add(const struct lu_env *env, struct obd_export *exp, int);
+int lut_client_new(const struct lu_env *env, struct obd_export *exp);
+int lut_client_data_read(const struct lu_env *env, struct lu_target *tg,
+                        struct lsd_client_data *lcd, loff_t *off, int index);
+int lut_client_data_write(const struct lu_env *env, struct lu_target *tg,
+                         struct lsd_client_data *lcd, loff_t *off, struct thandle *th);
+int lut_server_data_read(const struct lu_env *env, struct lu_target *tg);
+int lut_server_data_write(const struct lu_env *env, struct lu_target *tg,
+                         struct thandle *th);
+int lut_server_data_update(const struct lu_env *env, struct lu_target *tg, int sync);
+int lut_truncate_last_rcvd(const struct lu_env *env, struct lu_target *tg, loff_t off);
+
 #endif /* __LUSTRE_LU_TARGET_H */