Home
last modified time | relevance | path

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

/Linux-v5.15/fs/btrfs/tests/
Dbtrfs-tests.c131 fs_info->super_copy = kzalloc(sizeof(struct btrfs_super_block), in btrfs_alloc_dummy_fs_info()
133 if (!fs_info->super_copy) { in btrfs_alloc_dummy_fs_info()
193 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()
/Linux-v5.15/fs/btrfs/
Dtree-checker.c864 features = btrfs_super_incompat_flags(fs_info->super_copy); in btrfs_check_chunk_valid()
1008 u64 super_gen = btrfs_super_generation(fs_info->super_copy); in check_inode_item()
1118 btrfs_super_generation(fs_info->super_copy) + 1)) { in check_root_item()
1122 btrfs_super_generation(fs_info->super_copy) + 1); in check_root_item()
1126 btrfs_super_generation(fs_info->super_copy) + 1)) { in check_root_item()
1130 btrfs_super_generation(fs_info->super_copy) + 1); in check_root_item()
1134 btrfs_super_generation(fs_info->super_copy) + 1)) { in check_root_item()
1138 btrfs_super_generation(fs_info->super_copy) + 1); in check_root_item()
1274 btrfs_super_generation(fs_info->super_copy) + 1)) { in check_extent_item()
1278 btrfs_super_generation(fs_info->super_copy) + 1); in check_extent_item()
Dvolumes.c2185 num_devices = btrfs_super_num_devices(fs_info->super_copy) - 1; in btrfs_rm_device()
2186 btrfs_set_super_num_devices(fs_info->super_copy, num_devices); in btrfs_rm_device()
2396 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_prepare_sprout()
2649 orig_super_total_bytes = btrfs_super_total_bytes(fs_info->super_copy); in btrfs_init_new_device()
2650 btrfs_set_super_total_bytes(fs_info->super_copy, in btrfs_init_new_device()
2654 orig_super_num_devices = btrfs_super_num_devices(fs_info->super_copy); in btrfs_init_new_device()
2655 btrfs_set_super_num_devices(fs_info->super_copy, in btrfs_init_new_device()
2752 btrfs_set_super_total_bytes(fs_info->super_copy, in btrfs_init_new_device()
2754 btrfs_set_super_num_devices(fs_info->super_copy, in btrfs_init_new_device()
2826 struct btrfs_super_block *super_copy = fs_info->super_copy; in btrfs_grow_device() local
[all …]
Dsysfs.c115 struct btrfs_super_block *disk_super = fs_info->super_copy; in get_features()
127 struct btrfs_super_block *disk_super = fs_info->super_copy; in set_features()
770 char *label = fs_info->super_copy->label; in btrfs_label_show()
803 memset(fs_info->super_copy->label, 0, BTRFS_LABEL_SIZE); in btrfs_label_store()
804 memcpy(fs_info->super_copy->label, buf, p_len); in btrfs_label_store()
822 return scnprintf(buf, PAGE_SIZE, "%u\n", fs_info->super_copy->nodesize); in btrfs_nodesize_show()
833 fs_info->super_copy->sectorsize); in btrfs_sectorsize_show()
843 return scnprintf(buf, PAGE_SIZE, "%u\n", fs_info->super_copy->sectorsize); in btrfs_clone_alignment_show()
903 u16 csum_type = btrfs_super_csum_type(fs_info->super_copy); in btrfs_checksum_show()
Ddisk-io.c1645 kfree(fs_info->super_copy); in btrfs_free_fs_info()
1978 const u64 newest_gen = btrfs_super_generation(info->super_copy); in find_newest_super_backup()
1984 root_backup = info->super_copy->super_roots + i; in find_newest_super_backup()
2058 btrfs_super_total_bytes(info->super_copy)); in backup_super_roots()
2060 btrfs_super_bytes_used(info->super_copy)); in backup_super_roots()
2062 btrfs_super_num_devices(info->super_copy)); in backup_super_roots()
2068 memcpy(&info->super_copy->super_roots, in backup_super_roots()
2085 struct btrfs_super_block *super = fs_info->super_copy; in read_backup_root()
2383 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_replay_log()
2635 if (memcmp(fs_info->fs_devices->fsid, fs_info->super_copy->fsid, in validate_super()
[all …]
Dsuper.c584 btrfs_set_super_cache_generation(info->super_copy, 0); in btrfs_parse_options()
1306 dir_id = btrfs_super_root_dir(fs_info->super_copy); in get_default_subvol_objectid()
1674 fs_info->super_copy = kzalloc(BTRFS_SUPER_INFO_SIZE, GFP_KERNEL); in btrfs_mount_root()
1676 if (!fs_info->super_copy || !fs_info->super_for_commit) { in btrfs_mount_root()
2027 if (btrfs_super_log_root(fs_info->super_copy) != 0) { in btrfs_remount()
2239 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_statfs()
Dtransaction.c1820 super = fs_info->super_copy; in update_super_roots()
2319 btrfs_set_super_log_root(fs_info->super_copy, 0); in btrfs_commit_transaction()
2320 btrfs_set_super_log_root_level(fs_info->super_copy, 0); in btrfs_commit_transaction()
2321 memcpy(fs_info->super_for_commit, fs_info->super_copy, in btrfs_commit_transaction()
2322 sizeof(*fs_info->super_copy)); in btrfs_commit_transaction()
Dctree.h709 struct btrfs_super_block *super_copy; member
3593 disk_super = fs_info->super_copy; in __btrfs_set_fs_incompat()
3619 disk_super = fs_info->super_copy; in __btrfs_clear_fs_incompat()
3641 disk_super = fs_info->super_copy; in __btrfs_fs_incompat()
3655 disk_super = fs_info->super_copy; in __btrfs_set_fs_compat_ro()
3681 disk_super = fs_info->super_copy; in __btrfs_clear_fs_compat_ro()
3703 disk_super = fs_info->super_copy; in __btrfs_fs_compat_ro()
Dinode-item.c368 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_insert_inode_ref()
Dioctl.c3356 fi_args->csum_type = btrfs_super_csum_type(fs_info->super_copy); in btrfs_ioctl_fs_info()
3357 fi_args->csum_size = btrfs_super_csum_size(fs_info->super_copy); in btrfs_ioctl_fs_info()
3475 dir_id = btrfs_super_root_dir(fs_info->super_copy); in btrfs_ioctl_default_subvol()
4632 memcpy(label, fs_info->super_copy->label, BTRFS_LABEL_SIZE); in btrfs_ioctl_get_fslabel()
4653 struct btrfs_super_block *super_block = fs_info->super_copy; in btrfs_ioctl_set_fslabel()
4713 struct btrfs_super_block *super_block = fs_info->super_copy; in btrfs_ioctl_get_features()
4796 struct btrfs_super_block *super_block = fs_info->super_copy; in btrfs_ioctl_set_features()
Dblock-group.c2156 cache_gen = btrfs_super_cache_generation(info->super_copy); in btrfs_read_block_groups()
2158 btrfs_super_generation(info->super_copy) != cache_gen) in btrfs_read_block_groups()
3158 old_val = btrfs_super_bytes_used(info->super_copy); in btrfs_update_block_group()
3163 btrfs_set_super_bytes_used(info->super_copy, old_val); in btrfs_update_block_group()
3351 thresh = btrfs_super_total_bytes(fs_info->super_copy); in should_alloc_chunk()
Dspace-info.c225 disk_super = fs_info->super_copy; in btrfs_init_space_info()
Dfree-space-cache.c3942 return btrfs_super_cache_generation(fs_info->super_copy); in btrfs_free_space_cache_v1_active()
Dinode.c1087 ASSERT(num_bytes <= btrfs_super_total_bytes(fs_info->super_copy)); in cow_file_range()
4325 dir_id = btrfs_super_root_dir(fs_info->super_copy); in may_destroy_subvol()