Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274719
b: refs/heads/master
c: 7c7e82a
h: refs/heads/master
i:
  274717: 9f4cf2a
  274715: fd8b7c4
  274711: cb5a19d
  274703: 14842a4
  274687: aec2d0b
v: v3
  • Loading branch information
Chris Mason committed Nov 6, 2011
1 parent 078c23c commit 8d837a7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d43317dcd074818d4bd12ddd4184a29aff98907b
refs/heads/master: 7c7e82a77fe3d89ae50824aa7c897454675eb4c4
13 changes: 10 additions & 3 deletions trunk/fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -1754,11 +1754,18 @@ static void backup_super_roots(struct btrfs_fs_info *info)
btrfs_set_backup_extent_root_level(root_backup,
btrfs_header_level(info->extent_root->node));

btrfs_set_backup_fs_root(root_backup, info->fs_root->node->start);
btrfs_set_backup_fs_root_gen(root_backup,
/*
* we might commit during log recovery, which happens before we set
* the fs_root. Make sure it is valid before we fill it in.
*/
if (info->fs_root && info->fs_root->node) {
btrfs_set_backup_fs_root(root_backup,
info->fs_root->node->start);
btrfs_set_backup_fs_root_gen(root_backup,
btrfs_header_generation(info->fs_root->node));
btrfs_set_backup_fs_root_level(root_backup,
btrfs_set_backup_fs_root_level(root_backup,
btrfs_header_level(info->fs_root->node));
}

btrfs_set_backup_dev_root(root_backup, info->dev_root->node->start);
btrfs_set_backup_dev_root_gen(root_backup,
Expand Down

0 comments on commit 8d837a7

Please sign in to comment.