Home
last modified time | relevance | path

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

/linux-6.15/fs/btrfs/
H A Dfs.c143 disk_super = fs_info->super_copy; in __btrfs_set_fs_incompat()
166 disk_super = fs_info->super_copy; in __btrfs_clear_fs_incompat()
189 disk_super = fs_info->super_copy; in __btrfs_set_fs_compat_ro()
212 disk_super = fs_info->super_copy; in __btrfs_clear_fs_compat_ro()
H A Dvolumes.c2808 btrfs_set_super_total_bytes(fs_info->super_copy, in btrfs_init_new_device()
2980 struct btrfs_super_block *super_copy = fs_info->super_copy; in btrfs_grow_device() local
3000 btrfs_set_super_total_bytes(super_copy, in btrfs_grow_device()
3060 struct btrfs_super_block *super_copy = fs_info->super_copy; in btrfs_del_sys_chunk() local
3074 ptr = super_copy->sys_chunk_array; in btrfs_del_sys_chunk()
4852 struct btrfs_super_block *super_copy = fs_info->super_copy; in btrfs_shrink_device() local
5011 btrfs_set_super_total_bytes(super_copy, in btrfs_shrink_device()
5043 struct btrfs_super_block *super_copy = fs_info->super_copy; in btrfs_add_system_chunk() local
5055 ptr = super_copy->sys_chunk_array + array_size; in btrfs_add_system_chunk()
7269 struct btrfs_super_block *super_copy = fs_info->super_copy; in btrfs_read_sys_array() local
[all …]
H A Dtree-checker.c947 features = btrfs_super_incompat_flags(fs_info->super_copy); in btrfs_check_chunk_valid()
1102 u64 super_gen = btrfs_super_generation(fs_info->super_copy); in check_inode_item()
1219 btrfs_super_generation(fs_info->super_copy) + 1)) { in check_root_item()
1223 btrfs_super_generation(fs_info->super_copy) + 1); in check_root_item()
1227 btrfs_super_generation(fs_info->super_copy) + 1)) { in check_root_item()
1231 btrfs_super_generation(fs_info->super_copy) + 1); in check_root_item()
1235 btrfs_super_generation(fs_info->super_copy) + 1)) { in check_root_item()
1239 btrfs_super_generation(fs_info->super_copy) + 1); in check_root_item()
1404 btrfs_super_generation(fs_info->super_copy) + 1)) { in check_extent_item()
1408 btrfs_super_generation(fs_info->super_copy) + 1); in check_extent_item()
H A Ddisk-io.c1282 kfree(fs_info->super_copy); in btrfs_free_fs_info()
1633 root_backup = info->super_copy->super_roots + i; in find_newest_super_backup()
1713 btrfs_super_total_bytes(info->super_copy)); in backup_super_roots()
1715 btrfs_super_bytes_used(info->super_copy)); in backup_super_roots()
1717 btrfs_super_num_devices(info->super_copy)); in backup_super_roots()
1723 memcpy(&info->super_copy->super_roots, in backup_super_roots()
1740 struct btrfs_super_block *super = fs_info->super_copy; in read_backup_root()
2682 struct btrfs_super_block *sb = fs_info->super_copy; in load_important_roots()
2700 struct btrfs_super_block *sb = fs_info->super_copy; in init_tree_roots()
3362 memcpy(fs_info->super_copy, disk_super, sizeof(*fs_info->super_copy)); in open_ctree()
[all …]
H A Dfs.h532 struct btrfs_super_block *super_copy; member
1038 (!!(btrfs_super_incompat_flags((fs_info)->super_copy) & (flags)))
1041 (!!(btrfs_super_compat_ro_flags((fs_info)->super_copy) & (flags)))
H A Dsuper.c745 btrfs_set_super_cache_generation(fs_info->super_copy, 0); in btrfs_set_free_space_cache_settings()
928 dir_id = btrfs_super_root_dir(fs_info->super_copy); in get_default_subvol_objectid()
1308 if (btrfs_super_log_root(fs_info->super_copy) != 0) { in btrfs_remount_rw()
1720 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_statfs()
2026 fs_info->super_copy = kzalloc(BTRFS_SUPER_INFO_SIZE, GFP_KERNEL); in btrfs_get_tree_subvol()
2028 if (!fs_info->super_copy || !fs_info->super_for_commit) { in btrfs_get_tree_subvol()
2305 if (csum_type != btrfs_super_csum_type(fs_info->super_copy)) { in check_dev_super()
2307 csum_type, btrfs_super_csum_type(fs_info->super_copy)); in check_dev_super()
H A Dtransaction.c1938 super = fs_info->super_copy; in update_super_roots()
2497 btrfs_set_super_log_root(fs_info->super_copy, 0); in btrfs_commit_transaction()
2498 btrfs_set_super_log_root_level(fs_info->super_copy, 0); in btrfs_commit_transaction()
2499 memcpy(fs_info->super_for_commit, fs_info->super_copy, in btrfs_commit_transaction()
2500 sizeof(*fs_info->super_copy)); in btrfs_commit_transaction()
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()
1070 char *label = fs_info->super_copy->label; in btrfs_label_show()
1103 memset(fs_info->super_copy->label, 0, BTRFS_LABEL_SIZE); in btrfs_label_store()
1104 memcpy(fs_info->super_copy->label, buf, p_len); in btrfs_label_store()
1243 u16 csum_type = btrfs_super_csum_type(fs_info->super_copy); in btrfs_checksum_show()
H A Dblock-group.c2543 if (!root || (btrfs_super_compat_ro_flags(info->super_copy) & in btrfs_read_block_groups()
2554 cache_gen = btrfs_super_cache_generation(info->super_copy); in btrfs_read_block_groups()
2556 btrfs_super_generation(info->super_copy) != cache_gen) in btrfs_read_block_groups()
2862 if (btrfs_super_total_bytes(fs_info->super_copy) <= (SZ_1G * 10ULL)) in calculate_global_root_id()
3679 old_val = btrfs_super_bytes_used(info->super_copy); in btrfs_update_block_group()
3684 btrfs_set_super_bytes_used(info->super_copy, old_val); in btrfs_update_block_group()
3888 thresh = btrfs_super_total_bytes(fs_info->super_copy); in should_alloc_chunk()
H A Dioctl.c2796 fi_args->csum_type = btrfs_super_csum_type(fs_info->super_copy); in btrfs_ioctl_fs_info()
2797 fi_args->csum_size = btrfs_super_csum_size(fs_info->super_copy); in btrfs_ioctl_fs_info()
2913 dir_id = btrfs_super_root_dir(fs_info->super_copy); in btrfs_ioctl_default_subvol()
4156 memcpy(label, fs_info->super_copy->label, BTRFS_LABEL_SIZE); in btrfs_ioctl_get_fslabel()
4177 struct btrfs_super_block *super_block = fs_info->super_copy; in btrfs_ioctl_set_fslabel()
4237 struct btrfs_super_block *super_block = fs_info->super_copy; in btrfs_ioctl_get_features()
4320 struct btrfs_super_block *super_block = fs_info->super_copy; in btrfs_ioctl_set_features()
H A Dinode-item.c368 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_insert_inode_ref()
H A Dspace-info.c283 disk_super = fs_info->super_copy; in btrfs_init_space_info()
H A Dfree-space-cache.c4103 return btrfs_super_cache_generation(fs_info->super_copy); in btrfs_free_space_cache_v1_active()
H A Dinode.c1304 ASSERT(num_bytes <= btrfs_super_total_bytes(fs_info->super_copy)); in cow_file_range()
4510 dir_id = btrfs_super_root_dir(fs_info->super_copy); in may_destroy_subvol()
/linux-6.15/fs/btrfs/tests/
H A Dbtrfs-tests.c133 fs_info->super_copy = kzalloc(sizeof(struct btrfs_super_block), in btrfs_alloc_dummy_fs_info()
135 if (!fs_info->super_copy) { in btrfs_alloc_dummy_fs_info()
199 kfree(fs_info->super_copy); in btrfs_free_dummy_fs_info()
H A Dfree-space-tree-tests.c448 btrfs_set_super_compat_ro_flags(root->fs_info->super_copy, in run_test()
H A Draid-stripe-tree-tests.c1104 btrfs_set_super_incompat_flags(root->fs_info->super_copy, in run_test()