diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-03-28 19:44:27 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-03-28 19:44:27 -0400 |
commit | 87cbda5c1f54aba67b1e318a4a4824c9e9f16324 (patch) | |
tree | ba2917a8bcd00272c77c93236006fd8562566946 /fs/btrfs/super.c | |
parent | d98237b3ede7ab98892f7fa62201a13694c526e2 (diff) |
Btrfs: sha256 csums on metadata
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r-- | fs/btrfs/super.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 8f07f462236a..151c1002d74e 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -473,13 +473,13 @@ static int btrfs_fill_super(struct super_block * sb, void * data, int silent) | |||
473 | } | 473 | } |
474 | disk_super = (struct btrfs_super_block *)bh->b_data; | 474 | disk_super = (struct btrfs_super_block *)bh->b_data; |
475 | root = open_ctree(sb, bh, disk_super); | 475 | root = open_ctree(sb, bh, disk_super); |
476 | sb->s_fs_info = root; | ||
477 | disk_super = root->fs_info->disk_super; | ||
478 | 476 | ||
479 | if (!root) { | 477 | if (!root) { |
480 | printk("btrfs: open_ctree failed\n"); | 478 | printk("btrfs: open_ctree failed\n"); |
481 | return -EIO; | 479 | return -EIO; |
482 | } | 480 | } |
481 | sb->s_fs_info = root; | ||
482 | disk_super = root->fs_info->disk_super; | ||
483 | printk("read in super total blocks %Lu root %Lu\n", | 483 | printk("read in super total blocks %Lu root %Lu\n", |
484 | btrfs_super_total_blocks(disk_super), | 484 | btrfs_super_total_blocks(disk_super), |
485 | btrfs_super_root_dir(disk_super)); | 485 | btrfs_super_root_dir(disk_super)); |