Btrfs: fix orphan transaction on the freezed filesystem
[linux-2.6-block.git] / fs / btrfs / transaction.h
index 0630bd19396a4ab5a0a681cb90707f747767f218..80961947a6b27df59273f080f9f19316c8d98ffc 100644 (file)
@@ -52,7 +52,7 @@ enum btrfs_trans_type {
        TRANS_JOIN,
        TRANS_USERSPACE,
        TRANS_JOIN_NOLOCK,
-       TRANS_JOIN_FREEZE,
+       TRANS_ATTACH,
 };
 
 struct btrfs_trans_handle {
@@ -109,7 +109,7 @@ struct btrfs_trans_handle *btrfs_start_transaction_noflush(
                                        struct btrfs_root *root, int num_items);
 struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root);
 struct btrfs_trans_handle *btrfs_join_transaction_nolock(struct btrfs_root *root);
-struct btrfs_trans_handle *btrfs_join_transaction_freeze(struct btrfs_root *root);
+struct btrfs_trans_handle *btrfs_attach_transaction(struct btrfs_root *root);
 struct btrfs_trans_handle *btrfs_start_ioctl_transaction(struct btrfs_root *root);
 int btrfs_wait_for_commit(struct btrfs_root *root, u64 transid);
 int btrfs_write_and_wait_transaction(struct btrfs_trans_handle *trans,