summaryrefslogtreecommitdiff
path: root/disk-io.c
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2015-07-07 16:15:22 +0800
committerDavid Sterba <dsterba@suse.com>2015-07-10 14:29:09 +0200
commitde70c9aed8a14b1b477a79bf6c7e2a06a2623988 (patch)
tree6c1b7908969d9bd83af80ce5db23606c3da9479b /disk-io.c
parentfd31a4d6ba65e17bd3f0565ea7f5ed1226e84be2 (diff)
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 <quwenruo@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'disk-io.c')
-rw-r--r--disk-io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/disk-io.c b/disk-io.c
index 6a538433..fdcfd6dd 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;