Home
last modified time | relevance | path

Searched refs:super_copy (Results 1 – 15 of 15) sorted by relevance

/fs/btrfs/tests/
Dbtrfs-tests.c132 fs_info->super_copy = kzalloc(sizeof(struct btrfs_super_block), in btrfs_alloc_dummy_fs_info()
134 if (!fs_info->super_copy) { in btrfs_alloc_dummy_fs_info()
194 kfree(fs_info->super_copy); in btrfs_free_dummy_fs_info()
Dfree-space-tree-tests.c447 btrfs_set_super_compat_ro_flags(root->fs_info->super_copy, in run_test()
/fs/btrfs/
Dtree-checker.c895 features = btrfs_super_incompat_flags(fs_info->super_copy); in btrfs_check_chunk_valid()
1047 u64 super_gen = btrfs_super_generation(fs_info->super_copy); in check_inode_item()
1164 btrfs_super_generation(fs_info->super_copy) + 1)) { in check_root_item()
1168 btrfs_super_generation(fs_info->super_copy) + 1); in check_root_item()
1172 btrfs_super_generation(fs_info->super_copy) + 1)) { in check_root_item()
1176 btrfs_super_generation(fs_info->super_copy) + 1); in check_root_item()
1180 btrfs_super_generation(fs_info->super_copy) + 1)) { in check_root_item()
1184 btrfs_super_generation(fs_info->super_copy) + 1); in check_root_item()
1321 btrfs_super_generation(fs_info->super_copy) + 1)) { in check_extent_item()
1325 btrfs_super_generation(fs_info->super_copy) + 1); in check_extent_item()
Dvolumes.c2226 num_devices = btrfs_super_num_devices(fs_info->super_copy) - 1; in btrfs_rm_device()
2227 btrfs_set_super_num_devices(fs_info->super_copy, num_devices); in btrfs_rm_device()
2510 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_setup_sprout()
2761 orig_super_total_bytes = btrfs_super_total_bytes(fs_info->super_copy); in btrfs_init_new_device()
2762 btrfs_set_super_total_bytes(fs_info->super_copy, in btrfs_init_new_device()
2766 orig_super_num_devices = btrfs_super_num_devices(fs_info->super_copy); in btrfs_init_new_device()
2767 btrfs_set_super_num_devices(fs_info->super_copy, in btrfs_init_new_device()
2864 btrfs_set_super_total_bytes(fs_info->super_copy, in btrfs_init_new_device()
2866 btrfs_set_super_num_devices(fs_info->super_copy, in btrfs_init_new_device()
2938 struct btrfs_super_block *super_copy = fs_info->super_copy; in btrfs_grow_device() local
[all …]
Dsysfs.c121 struct btrfs_super_block *disk_super = fs_info->super_copy; in get_features()
133 struct btrfs_super_block *disk_super = fs_info->super_copy; in set_features()
922 char *label = fs_info->super_copy->label; in btrfs_label_show()
955 memset(fs_info->super_copy->label, 0, BTRFS_LABEL_SIZE); in btrfs_label_store()
956 memcpy(fs_info->super_copy->label, buf, p_len); in btrfs_label_store()
974 return sysfs_emit(buf, "%u\n", fs_info->super_copy->nodesize); in btrfs_nodesize_show()
984 return sysfs_emit(buf, "%u\n", fs_info->super_copy->sectorsize); in btrfs_sectorsize_show()
1036 return sysfs_emit(buf, "%u\n", fs_info->super_copy->sectorsize); in btrfs_clone_alignment_show()
1095 u16 csum_type = btrfs_super_csum_type(fs_info->super_copy); in btrfs_checksum_show()
Ddisk-io.c1625 kfree(fs_info->super_copy); in btrfs_free_fs_info()
1957 const u64 newest_gen = btrfs_super_generation(info->super_copy); in find_newest_super_backup()
1963 root_backup = info->super_copy->super_roots + i; in find_newest_super_backup()
2043 btrfs_super_total_bytes(info->super_copy)); in backup_super_roots()
2045 btrfs_super_bytes_used(info->super_copy)); in backup_super_roots()
2047 btrfs_super_num_devices(info->super_copy)); in backup_super_roots()
2053 memcpy(&info->super_copy->super_roots, in backup_super_roots()
2070 struct btrfs_super_block *super = fs_info->super_copy; in read_backup_root()
2392 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_replay_log()
2844 return btrfs_validate_super(fs_info, fs_info->super_copy, 0); in btrfs_validate_mount_super()
[all …]
Dsuper.c643 btrfs_set_super_cache_generation(info->super_copy, 0); in btrfs_parse_options()
1417 dir_id = btrfs_super_root_dir(fs_info->super_copy); in get_default_subvol_objectid()
1785 fs_info->super_copy = kzalloc(BTRFS_SUPER_INFO_SIZE, GFP_KERNEL); in btrfs_mount_root()
1787 if (!fs_info->super_copy || !fs_info->super_for_commit) { in btrfs_mount_root()
2138 if (btrfs_super_log_root(fs_info->super_copy) != 0) { in btrfs_remount()
2342 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_statfs()
2585 if (csum_type != btrfs_super_csum_type(fs_info->super_copy)) { in check_dev_super()
2587 csum_type, btrfs_super_csum_type(fs_info->super_copy)); in check_dev_super()
Dtransaction.c1914 super = fs_info->super_copy; in update_super_roots()
2461 btrfs_set_super_log_root(fs_info->super_copy, 0); in btrfs_commit_transaction()
2462 btrfs_set_super_log_root_level(fs_info->super_copy, 0); in btrfs_commit_transaction()
2463 memcpy(fs_info->super_for_commit, fs_info->super_copy, in btrfs_commit_transaction()
2464 sizeof(*fs_info->super_copy)); in btrfs_commit_transaction()
Dblock-group.c2282 if (!root || (btrfs_super_compat_ro_flags(info->super_copy) & in btrfs_read_block_groups()
2293 cache_gen = btrfs_super_cache_generation(info->super_copy); in btrfs_read_block_groups()
2295 btrfs_super_generation(info->super_copy) != cache_gen) in btrfs_read_block_groups()
2563 if (btrfs_super_total_bytes(fs_info->super_copy) <= (SZ_1G * 10ULL)) in calculate_global_root_id()
3381 old_val = btrfs_super_bytes_used(info->super_copy); in btrfs_update_block_group()
3386 btrfs_set_super_bytes_used(info->super_copy, old_val); in btrfs_update_block_group()
3582 thresh = btrfs_super_total_bytes(fs_info->super_copy); in should_alloc_chunk()
Dctree.h730 struct btrfs_super_block *super_copy; member
3883 disk_super = fs_info->super_copy; in __btrfs_set_fs_incompat()
3909 disk_super = fs_info->super_copy; in __btrfs_clear_fs_incompat()
3931 disk_super = fs_info->super_copy; in __btrfs_fs_incompat()
3945 disk_super = fs_info->super_copy; in __btrfs_set_fs_compat_ro()
3971 disk_super = fs_info->super_copy; in __btrfs_clear_fs_compat_ro()
3993 disk_super = fs_info->super_copy; in __btrfs_fs_compat_ro()
Dioctl.c3727 fi_args->csum_type = btrfs_super_csum_type(fs_info->super_copy); in btrfs_ioctl_fs_info()
3728 fi_args->csum_size = btrfs_super_csum_size(fs_info->super_copy); in btrfs_ioctl_fs_info()
3843 dir_id = btrfs_super_root_dir(fs_info->super_copy); in btrfs_ioctl_default_subvol()
5010 memcpy(label, fs_info->super_copy->label, BTRFS_LABEL_SIZE); in btrfs_ioctl_get_fslabel()
5031 struct btrfs_super_block *super_block = fs_info->super_copy; in btrfs_ioctl_set_fslabel()
5091 struct btrfs_super_block *super_block = fs_info->super_copy; in btrfs_ioctl_get_features()
5174 struct btrfs_super_block *super_block = fs_info->super_copy; in btrfs_ioctl_set_features()
Dinode-item.c367 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_insert_inode_ref()
Dspace-info.c267 disk_super = fs_info->super_copy; in btrfs_init_space_info()
Dfree-space-cache.c4078 return btrfs_super_cache_generation(fs_info->super_copy); in btrfs_free_space_cache_v1_active()
Dinode.c1200 ASSERT(num_bytes <= btrfs_super_total_bytes(fs_info->super_copy)); in cow_file_range()
4595 dir_id = btrfs_super_root_dir(fs_info->super_copy); in may_destroy_subvol()