diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2015-07-07 16:15:22 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2015-07-10 14:29:09 +0200 |
commit | de70c9aed8a14b1b477a79bf6c7e2a06a2623988 (patch) | |
tree | 6c1b7908969d9bd83af80ce5db23606c3da9479b /disk-io.c | |
parent | fd31a4d6ba65e17bd3f0565ea7f5ed1226e84be2 (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |