btrfs-progs: convert: Rework rollback
[platform/upstream/btrfs-progs.git] / transaction.h
index c5780bc..0c41af5 100644 (file)
@@ -19,6 +19,9 @@
 #ifndef __BTRFS_TRANSACTION_H__
 #define __BTRFS_TRANSACTION_H__
 
+#include "kerncompat.h"
+#include "ctree.h"
+
 struct btrfs_trans_handle {
        u64 transid;
        u64 alloc_exclude_start;
@@ -51,11 +54,4 @@ btrfs_start_transaction(struct btrfs_root *root, int num_blocks)
        return h;
 }
 
-static inline void btrfs_free_transaction(struct btrfs_root *root,
-                                         struct btrfs_trans_handle *handle)
-{
-       memset(handle, 0, sizeof(*handle));
-       free(handle);
-}
-
 #endif