diff options
author | David Sterba <dsterba@suse.com> | 2017-02-09 17:24:50 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-03-08 13:00:47 +0100 |
commit | 497f9742945d30967efef1c123ad8efad721bb14 (patch) | |
tree | d9e44d89e5895ec071ef1cb3972c33366a64bc8c /disk-io.c | |
parent | 4999d033d3b00d895807f192a986d7bdd926f8a1 (diff) |
btrfs-progs: opencode trivial helper btrfs_free_transaction
It also does not exist in kernel code.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'disk-io.c')
-rw-r--r-- | disk-io.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -617,7 +617,7 @@ commit_tree: write_ctree_super(trans, root); btrfs_finish_extent_commit(trans, fs_info->extent_root, &fs_info->pinned_extents); - btrfs_free_transaction(root, trans); + kfree(trans); free_extent_buffer(root->commit_root); root->commit_root = NULL; fs_info->running_transaction = NULL; @@ -1801,7 +1801,7 @@ int close_ctree_fs_info(struct btrfs_fs_info *fs_info) ret = __commit_transaction(trans, root); BUG_ON(ret); write_ctree_super(trans, root); - btrfs_free_transaction(root, trans); + kfree(trans); } if (fs_info->finalize_on_close) { |