As chunk tree is only stored in super block, chunk tree commit doesn't
need to go through tree root update.
Or a BUG_ON will be triggered.
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
goto commit_tree;
if (root == root->fs_info->tree_root)
goto commit_tree;
+ if (root == root->fs_info->chunk_root)
+ goto commit_tree;
free_extent_buffer(root->commit_root);
root->commit_root = NULL;