btrfs-progs: move transaction code out of disk-io
[platform/upstream/btrfs-progs.git] / transaction.h
index 7f6be05..fe6704e 100644 (file)
@@ -33,5 +33,11 @@ struct btrfs_trans_handle {
 
 struct btrfs_trans_handle* btrfs_start_transaction(struct btrfs_root *root,
                int num_blocks);
+int __commit_transaction(struct btrfs_trans_handle *trans,
+                               struct btrfs_root *root);
+int commit_tree_roots(struct btrfs_trans_handle *trans,
+                            struct btrfs_fs_info *fs_info);
+int btrfs_commit_transaction(struct btrfs_trans_handle *trans,
+                            struct btrfs_root *root);
 
 #endif