summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-04-10 16:22:00 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2008-04-10 16:22:00 -0400
commitd1b04c21120aa55cc737b8a1ddcdf31cefb97b97 (patch)
tree1c192fbf849fb8f03ed1dd69074842273c93b97f /utils.c
parentfd2d0af0bf80c127fbb3b84817a420fbc490da5d (diff)
Write all super blocks during commit
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils.c b/utils.c
index 9d162da7..0015ee27 100644
--- a/utils.c
+++ b/utils.c
@@ -471,6 +471,9 @@ int btrfs_add_to_fsid(struct btrfs_trans_handle *trans,
kfree(buf);
list_add(&device->dev_list, &root->fs_info->fs_devices->devices);
+ ret = btrfs_bootstrap_super_map(&root->fs_info->mapping_tree,
+ root->fs_info->fs_devices);
+ BUG_ON(ret);
return 0;
}