Lines Matching refs:disk_super
2361 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_replay_log() local
2362 u64 bytenr = btrfs_super_log_root(disk_super); in btrfs_replay_log()
2363 int level = btrfs_super_log_root_level(disk_super); in btrfs_replay_log()
3320 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_check_features() local
3321 u64 incompat = btrfs_super_incompat_flags(disk_super); in btrfs_check_features()
3322 const u64 compat_ro = btrfs_super_compat_ro_flags(disk_super); in btrfs_check_features()
3354 if (btrfs_super_nodesize(disk_super) > PAGE_SIZE) in btrfs_check_features()
3369 if (compat_ro_unsupp && btrfs_super_log_root(disk_super) && in btrfs_check_features()
3405 btrfs_set_super_incompat_flags(disk_super, incompat); in btrfs_check_features()
3420 struct btrfs_super_block *disk_super; in open_ctree() local
3459 disk_super = btrfs_read_dev_super(fs_devices->latest_dev->bdev); in open_ctree()
3460 if (IS_ERR(disk_super)) { in open_ctree()
3461 err = PTR_ERR(disk_super); in open_ctree()
3469 csum_type = btrfs_super_csum_type(disk_super); in open_ctree()
3474 btrfs_release_disk_super(disk_super); in open_ctree()
3478 fs_info->csum_size = btrfs_super_csum_size(disk_super); in open_ctree()
3483 btrfs_release_disk_super(disk_super); in open_ctree()
3491 if (btrfs_check_super_csum(fs_info, disk_super)) { in open_ctree()
3494 btrfs_release_disk_super(disk_super); in open_ctree()
3503 memcpy(fs_info->super_copy, disk_super, sizeof(*fs_info->super_copy)); in open_ctree()
3504 btrfs_release_disk_super(disk_super); in open_ctree()
3506 disk_super = fs_info->super_copy; in open_ctree()
3509 features = btrfs_super_flags(disk_super); in open_ctree()
3512 btrfs_set_super_flags(disk_super, features); in open_ctree()
3527 if (!btrfs_super_root(disk_super)) in open_ctree()
3531 if (btrfs_super_flags(disk_super) & BTRFS_SUPER_FLAG_ERROR) in open_ctree()
3542 nodesize = btrfs_super_nodesize(disk_super); in open_ctree()
3543 sectorsize = btrfs_super_sectorsize(disk_super); in open_ctree()
3596 sb->s_bdi->ra_pages *= btrfs_super_num_devices(disk_super); in open_ctree()
3611 generation = btrfs_super_chunk_root_generation(disk_super); in open_ctree()
3612 level = btrfs_super_chunk_root_level(disk_super); in open_ctree()
3613 ret = load_super_root(chunk_root, btrfs_super_chunk_root(disk_super), in open_ctree()
3669 fs_info->generation == btrfs_super_uuid_tree_generation(disk_super)) in open_ctree()
3780 if (btrfs_super_log_root(disk_super) != 0 && in open_ctree()
3810 fs_info->generation != btrfs_super_uuid_tree_generation(disk_super))) { in open_ctree()
4012 struct btrfs_super_block *disk_super; in write_dev_supers() local
4048 disk_super = page_address(page); in write_dev_supers()
4049 memcpy(disk_super, sb, BTRFS_SUPER_INFO_SIZE); in write_dev_supers()