Whamcloud - gitweb
Land b_head_interop_disk on HEAD (20081119_1314)
[fs/lustre-release.git] / lustre / mdt / mdt_internal.h
index b5aaecb..ae204a9 100644 (file)
@@ -381,6 +381,12 @@ struct mdt_commit_cb {
         void     *mdt_cb_data;
 };
 
+enum mdt_txn_op {
+        MDT_TXN_CAPA_KEYS_WRITE_OP,
+        MDT_TXN_LAST_RCVD_WRITE_OP,
+};
+
+
 /*
  * Info allocated per-transaction.
  */
@@ -535,7 +541,7 @@ extern void target_recovery_fini(struct obd_device *obd);
 extern void target_recovery_init(struct obd_device *obd,
                                  svc_handler_t handler);
 int mdt_fs_setup(const struct lu_env *, struct mdt_device *,
-                 struct obd_device *);
+                 struct obd_device *, struct lustre_sb_info *lsi);
 void mdt_fs_cleanup(const struct lu_env *, struct mdt_device *);
 
 int mdt_client_del(const struct lu_env *env,
@@ -580,8 +586,12 @@ void mdt_shrink_reply(struct mdt_thread_info *info);
 int mdt_handle_last_unlink(struct mdt_thread_info *, struct mdt_object *,
                            const struct md_attr *);
 void mdt_reconstruct_open(struct mdt_thread_info *, struct mdt_lock_handle *);
+
+void mdt_trans_credit_init(const struct lu_env *env,
+                           struct mdt_device *mdt,
+                           enum mdt_txn_op op);
 struct thandle* mdt_trans_start(const struct lu_env *env,
-                                struct mdt_device *mdt, int credits);
+                                struct mdt_device *mdt);
 void mdt_trans_stop(const struct lu_env *env,
                     struct mdt_device *mdt, struct thandle *th);
 int mdt_record_write(const struct lu_env *env,