Lines Matching refs:super_copy
1957 num_devices = btrfs_super_num_devices(fs_info->super_copy) - 1; in btrfs_rm_device()
1958 btrfs_set_super_num_devices(fs_info->super_copy, num_devices); in btrfs_rm_device()
2185 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_prepare_sprout()
2421 orig_super_total_bytes = btrfs_super_total_bytes(fs_info->super_copy); in btrfs_init_new_device()
2422 btrfs_set_super_total_bytes(fs_info->super_copy, in btrfs_init_new_device()
2426 orig_super_num_devices = btrfs_super_num_devices(fs_info->super_copy); in btrfs_init_new_device()
2427 btrfs_set_super_num_devices(fs_info->super_copy, in btrfs_init_new_device()
2518 btrfs_set_super_total_bytes(fs_info->super_copy, in btrfs_init_new_device()
2520 btrfs_set_super_num_devices(fs_info->super_copy, in btrfs_init_new_device()
2590 struct btrfs_super_block *super_copy = fs_info->super_copy; in btrfs_grow_device() local
2601 old_total = btrfs_super_total_bytes(super_copy); in btrfs_grow_device()
2612 btrfs_set_super_total_bytes(super_copy, in btrfs_grow_device()
2664 struct btrfs_super_block *super_copy = fs_info->super_copy; in btrfs_del_sys_chunk() local
2676 array_size = btrfs_super_sys_array_size(super_copy); in btrfs_del_sys_chunk()
2678 ptr = super_copy->sys_chunk_array; in btrfs_del_sys_chunk()
2699 btrfs_set_super_sys_array_size(super_copy, array_size); in btrfs_del_sys_chunk()
3723 allowed = btrfs_super_incompat_flags(fs_info->super_copy); in btrfs_balance()
4343 struct btrfs_super_block *super_copy = fs_info->super_copy; in btrfs_shrink_device() local
4344 u64 old_total = btrfs_super_total_bytes(super_copy); in btrfs_shrink_device()
4488 btrfs_set_super_total_bytes(super_copy, in btrfs_shrink_device()
4517 struct btrfs_super_block *super_copy = fs_info->super_copy; in btrfs_add_system_chunk() local
4523 array_size = btrfs_super_sys_array_size(super_copy); in btrfs_add_system_chunk()
4530 ptr = super_copy->sys_chunk_array + array_size; in btrfs_add_system_chunk()
4536 btrfs_set_super_sys_array_size(super_copy, array_size + item_size); in btrfs_add_system_chunk()
6380 features = btrfs_super_incompat_flags(fs_info->super_copy); in btrfs_check_chunk_valid()
6704 struct btrfs_super_block *super_copy = fs_info->super_copy; in btrfs_read_sys_array() local
6744 write_extent_buffer(sb, super_copy, 0, BTRFS_SUPER_INFO_SIZE); in btrfs_read_sys_array()
6745 array_size = btrfs_super_sys_array_size(super_copy); in btrfs_read_sys_array()
6747 array_ptr = super_copy->sys_chunk_array; in btrfs_read_sys_array()
6957 btrfs_super_num_devices(fs_info->super_copy), in btrfs_read_chunk_tree()
6962 if (btrfs_super_total_bytes(fs_info->super_copy) < in btrfs_read_chunk_tree()
6966 btrfs_super_total_bytes(fs_info->super_copy), in btrfs_read_chunk_tree()