aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 40a540f31161..dae25e78a6b7 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -1609,6 +1609,8 @@ struct btrfs_root *open_ctree(struct super_block *sb,
1609 goto fail_iput; 1609 goto fail_iput;
1610 1610
1611 memcpy(&fs_info->super_copy, bh->b_data, sizeof(fs_info->super_copy)); 1611 memcpy(&fs_info->super_copy, bh->b_data, sizeof(fs_info->super_copy));
1612 memcpy(&fs_info->super_for_commit, &fs_info->super_copy,
1613 sizeof(fs_info->super_for_commit));
1612 brelse(bh); 1614 brelse(bh);
1613 1615
1614 memcpy(fs_info->fsid, fs_info->super_copy.fsid, BTRFS_FSID_SIZE); 1616 memcpy(fs_info->fsid, fs_info->super_copy.fsid, BTRFS_FSID_SIZE);
@@ -1790,7 +1792,7 @@ struct btrfs_root *open_ctree(struct super_block *sb,
1790 1792
1791 btrfs_read_block_groups(extent_root); 1793 btrfs_read_block_groups(extent_root);
1792 1794
1793 fs_info->generation = generation + 1; 1795 fs_info->generation = generation;
1794 fs_info->last_trans_committed = generation; 1796 fs_info->last_trans_committed = generation;
1795 fs_info->data_alloc_profile = (u64)-1; 1797 fs_info->data_alloc_profile = (u64)-1;
1796 fs_info->metadata_alloc_profile = (u64)-1; 1798 fs_info->metadata_alloc_profile = (u64)-1;