Home
last modified time | relevance | path

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

/linux/fs/btrfs/tests/
H A Dbtrfs-tests.c131 fs_info->super_copy = kzalloc_obj(struct btrfs_super_block); in btrfs_alloc_dummy_fs_info()
132 if (!fs_info->super_copy) { in btrfs_alloc_dummy_fs_info()
184 kfree(fs_info->super_copy); in btrfs_free_dummy_fs_info()
H A Draid-stripe-tree-tests.c1104 btrfs_set_super_incompat_flags(root->fs_info->super_copy, in run_test()
/linux/fs/btrfs/
H A Dvolumes.c2405 num_devices = btrfs_super_num_devices(fs_info->super_copy) - 1; in btrfs_rm_device()
2406 btrfs_set_super_num_devices(fs_info->super_copy, num_devices); in btrfs_rm_device()
2684 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_setup_sprout()
2925 orig_super_total_bytes = btrfs_super_total_bytes(fs_info->super_copy); in btrfs_init_new_device()
2926 btrfs_set_super_total_bytes(fs_info->super_copy, in btrfs_init_new_device()
2930 orig_super_num_devices = btrfs_super_num_devices(fs_info->super_copy); in btrfs_init_new_device()
2931 btrfs_set_super_num_devices(fs_info->super_copy, in btrfs_init_new_device()
3028 btrfs_set_super_total_bytes(fs_info->super_copy, in btrfs_init_new_device()
3030 btrfs_set_super_num_devices(fs_info->super_copy, in btrfs_init_new_device()
3093 struct btrfs_super_block *super_copy = fs_info->super_copy; in btrfs_grow_device() local
[all …]
H A Dtree-checker.c989 features = btrfs_super_incompat_flags(fs_info->super_copy); in btrfs_check_chunk_valid()
1131 u64 super_gen = btrfs_super_generation(fs_info->super_copy); in check_inode_item()
1248 btrfs_super_generation(fs_info->super_copy) + 1)) { in check_root_item()
1252 btrfs_super_generation(fs_info->super_copy) + 1); in check_root_item()
1256 btrfs_super_generation(fs_info->super_copy) + 1)) { in check_root_item()
1260 btrfs_super_generation(fs_info->super_copy) + 1); in check_root_item()
1264 btrfs_super_generation(fs_info->super_copy) + 1)) { in check_root_item()
1268 btrfs_super_generation(fs_info->super_copy) + 1); in check_root_item()
1450 btrfs_super_generation(fs_info->super_copy) + 1)) { in check_extent_item()
1454 btrfs_super_generation(fs_info->super_copy) + 1); in check_extent_item()
H A Ddisk-io.c1225 kfree(fs_info->super_copy); in btrfs_free_fs_info()
1574 const u64 newest_gen = btrfs_super_generation(info->super_copy); in find_newest_super_backup()
1580 root_backup = info->super_copy->super_roots + i; in find_newest_super_backup()
1669 btrfs_super_total_bytes(info->super_copy)); in backup_super_roots()
1671 btrfs_super_bytes_used(info->super_copy)); in backup_super_roots()
1673 btrfs_super_num_devices(info->super_copy)); in backup_super_roots()
1679 memcpy(&info->super_copy->super_roots, in backup_super_roots()
1698 struct btrfs_super_block *super = fs_info->super_copy; in read_backup_root()
2003 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_replay_log()
2589 return btrfs_validate_super(fs_info, fs_info->super_copy, 0); in btrfs_validate_mount_super()
[all …]
H A Dsuper.c757 btrfs_set_super_cache_generation(fs_info->super_copy, 0); in btrfs_set_free_space_cache_settings()
936 dir_id = btrfs_super_root_dir(fs_info->super_copy); in get_default_subvol_objectid()
1317 if (btrfs_super_log_root(fs_info->super_copy) != 0) { in btrfs_remount_rw()
1729 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_statfs()
2061 fs_info->super_copy = kzalloc(BTRFS_SUPER_INFO_SIZE, GFP_KERNEL); in btrfs_get_tree_subvol()
2063 if (!fs_info->super_copy || !fs_info->super_for_commit) { in btrfs_get_tree_subvol()
2068 kfree(fs_info->super_copy); in btrfs_get_tree_subvol()
2326 if (unlikely(csum_type != btrfs_super_csum_type(fs_info->super_copy))) { in check_dev_super()
2328 csum_type, btrfs_super_csum_type(fs_info->super_copy)); in check_dev_super()
H A Dfs.h602 struct btrfs_super_block *super_copy; member
1118 (!!(btrfs_super_incompat_flags((fs_info)->super_copy) & (flags)))
1121 (!!(btrfs_super_compat_ro_flags((fs_info)->super_copy) & (flags)))
H A Dsysfs.c124 struct btrfs_super_block *disk_super = fs_info->super_copy; in get_features()
136 struct btrfs_super_block *disk_super = fs_info->super_copy; in set_features()
1076 char *label = fs_info->super_copy->label; in btrfs_label_show()
1109 memset(fs_info->super_copy->label, 0, BTRFS_LABEL_SIZE); in btrfs_label_store()
1110 memcpy(fs_info->super_copy->label, buf, p_len); in btrfs_label_store()
1257 u16 csum_type = btrfs_super_csum_type(fs_info->super_copy); in btrfs_checksum_show()
H A Dtransaction.c1970 super = fs_info->super_copy; in update_super_roots()
2533 btrfs_set_super_log_root(fs_info->super_copy, 0); in btrfs_commit_transaction()
2534 btrfs_set_super_log_root_level(fs_info->super_copy, 0); in btrfs_commit_transaction()
2535 memcpy(fs_info->super_for_commit, fs_info->super_copy, in btrfs_commit_transaction()
2536 sizeof(*fs_info->super_copy)); in btrfs_commit_transaction()
H A Dblock-group.c2618 if (!root || (btrfs_super_compat_ro_flags(info->super_copy) & in btrfs_read_block_groups()
2629 cache_gen = btrfs_super_cache_generation(info->super_copy); in btrfs_read_block_groups()
2631 btrfs_super_generation(info->super_copy) != cache_gen) in btrfs_read_block_groups()
2961 if (btrfs_super_total_bytes(fs_info->super_copy) <= (SZ_1G * 10ULL)) in calculate_global_root_id()
3818 old_val = btrfs_super_bytes_used(info->super_copy); in btrfs_update_block_group()
3823 btrfs_set_super_bytes_used(info->super_copy, old_val); in btrfs_update_block_group()
4040 thresh = btrfs_super_total_bytes(fs_info->super_copy); in should_alloc_chunk()
H A Dioctl.c2672 fi_args->csum_type = btrfs_super_csum_type(fs_info->super_copy); in btrfs_ioctl_fs_info()
2673 fi_args->csum_size = btrfs_super_csum_size(fs_info->super_copy); in btrfs_ioctl_fs_info()
2789 dir_id = btrfs_super_root_dir(fs_info->super_copy); in btrfs_ioctl_default_subvol()
4027 memcpy(label, fs_info->super_copy->label, BTRFS_LABEL_SIZE); in btrfs_ioctl_get_fslabel()
4048 struct btrfs_super_block *super_block = fs_info->super_copy; in btrfs_ioctl_set_fslabel()
4108 struct btrfs_super_block *super_block = fs_info->super_copy; in btrfs_ioctl_get_features()
4188 struct btrfs_super_block *super_block = fs_info->super_copy; in btrfs_ioctl_set_features()
H A Dspace-info.c335 disk_super = fs_info->super_copy; in btrfs_init_space_info()
H A Dzoned.c2879 u64 total = btrfs_super_total_bytes(fs_info->super_copy); in btrfs_zoned_should_reclaim()
H A Dfree-space-cache.c4151 return btrfs_super_cache_generation(fs_info->super_copy); in btrfs_free_space_cache_v1_active()
H A Dinode.c1485 ASSERT(num_bytes <= btrfs_super_total_bytes(fs_info->super_copy)); in cow_file_range()
4697 dir_id = btrfs_super_root_dir(fs_info->super_copy); in may_destroy_subvol()
H A Drelocation.c6046 if (!(btrfs_super_incompat_flags(fs_info->super_copy) & in btrfs_remove_extent_from_remap_tree()