From de70c9aed8a14b1b477a79bf6c7e2a06a2623988 Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Tue, 7 Jul 2015 16:15:22 +0800 Subject: btrfs-progs: disk-io: Support commit transaction on chunk tree 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 Signed-off-by: David Sterba --- disk-io.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'disk-io.c') diff --git a/disk-io.c b/disk-io.c index 6a53843..fdcfd6d 100644 --- a/disk-io.c +++ b/disk-io.c @@ -571,6 +571,8 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans, 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; -- cgit v1.2.1