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;
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) {
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