Home
last modified time | relevance | path

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

/Linux-v4.19/fs/btrfs/tests/
Dbtrfs-tests.c82 fs_info->super_copy = kzalloc(sizeof(struct btrfs_super_block), in btrfs_alloc_dummy_fs_info()
84 if (!fs_info->super_copy) { in btrfs_alloc_dummy_fs_info()
95 kfree(fs_info->super_copy); in btrfs_alloc_dummy_fs_info()
165 kfree(fs_info->super_copy); in btrfs_free_dummy_fs_info()
Dfree-space-tree-tests.c459 btrfs_set_super_compat_ro_flags(root->fs_info->super_copy, in run_test()
/Linux-v4.19/fs/btrfs/
Dsysfs.c26 struct btrfs_super_block *disk_super = fs_info->super_copy; in get_features()
38 struct btrfs_super_block *disk_super = fs_info->super_copy; in set_features()
389 char *label = fs_info->super_copy->label; in btrfs_label_show()
422 memset(fs_info->super_copy->label, 0, BTRFS_LABEL_SIZE); in btrfs_label_store()
423 memcpy(fs_info->super_copy->label, buf, p_len); in btrfs_label_store()
441 return snprintf(buf, PAGE_SIZE, "%u\n", fs_info->super_copy->nodesize); in btrfs_nodesize_show()
452 fs_info->super_copy->sectorsize); in btrfs_sectorsize_show()
463 fs_info->super_copy->sectorsize); in btrfs_clone_alignment_show()
Dvolumes.c1957 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
[all …]
Dfile-item.c87 u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in btrfs_lookup_csum()
169 u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in __btrfs_lookup_bio_sums()
316 u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in btrfs_lookup_csums_range()
535 u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in truncate_one_csum()
589 u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in btrfs_del_csums()
741 u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in btrfs_csum_file_blocks()
Ddisk-io.c269 u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in csum_tree_block()
1836 root_backup = info->super_copy->super_roots + i; in find_newest_super_backup()
1844 root_backup = info->super_copy->super_roots; in find_newest_super_backup()
1951 btrfs_super_total_bytes(info->super_copy)); in backup_super_roots()
1953 btrfs_super_bytes_used(info->super_copy)); in backup_super_roots()
1955 btrfs_super_num_devices(info->super_copy)); in backup_super_roots()
1961 memcpy(&info->super_copy->super_roots, in backup_super_roots()
2272 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_replay_log()
2564 return validate_super(fs_info, fs_info->super_copy, 0); in btrfs_validate_mount_super()
2820 memcpy(fs_info->super_copy, bh->b_data, sizeof(*fs_info->super_copy)); in open_ctree()
[all …]
Dordered-data.h137 int csum_size = btrfs_super_csum_size(fs_info->super_copy); in btrfs_ordered_sum_size()
Dsuper.c438 cache_gen = btrfs_super_cache_generation(info->super_copy); in btrfs_parse_options()
1153 dir_id = btrfs_super_root_dir(fs_info->super_copy); in get_default_subvol_objectid()
1551 fs_info->super_copy = kzalloc(BTRFS_SUPER_INFO_SIZE, GFP_KERNEL); in btrfs_mount_root()
1554 if (!fs_info->super_copy || !fs_info->super_for_commit) { in btrfs_mount_root()
1856 if (btrfs_super_log_root(fs_info->super_copy) != 0) { in btrfs_remount()
2086 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_statfs()
Dtransaction.c1697 super = fs_info->super_copy; in update_super_roots()
2212 btrfs_set_super_log_root(fs_info->super_copy, 0); in btrfs_commit_transaction()
2213 btrfs_set_super_log_root_level(fs_info->super_copy, 0); in btrfs_commit_transaction()
2214 memcpy(fs_info->super_for_commit, fs_info->super_copy, in btrfs_commit_transaction()
2215 sizeof(*fs_info->super_copy)); in btrfs_commit_transaction()
Dctree.h843 struct btrfs_super_block *super_copy; member
2973 kfree(fs_info->super_copy); in free_fs_info()
3521 disk_super = fs_info->super_copy; in __btrfs_set_fs_incompat()
3545 disk_super = fs_info->super_copy; in __btrfs_clear_fs_incompat()
3566 disk_super = fs_info->super_copy; in __btrfs_fs_incompat()
3579 disk_super = fs_info->super_copy; in __btrfs_set_fs_compat_ro()
3603 disk_super = fs_info->super_copy; in __btrfs_clear_fs_compat_ro()
3624 disk_super = fs_info->super_copy; in __btrfs_fs_compat_ro()
Dinode-item.c382 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_insert_inode_ref()
Dtree-checker.c196 u32 csumsize = btrfs_super_csum_size(fs_info->super_copy); in check_csum_item()
Dioctl.c494 u64 total_bytes = btrfs_super_total_bytes(fs_info->super_copy); in btrfs_ioctl_fitrim()
4415 dir_id = btrfs_super_root_dir(fs_info->super_copy); in btrfs_ioctl_default_subvol()
5573 memcpy(label, fs_info->super_copy->label, BTRFS_LABEL_SIZE); in btrfs_ioctl_get_fslabel()
5594 struct btrfs_super_block *super_block = fs_info->super_copy; in btrfs_ioctl_set_fslabel()
5655 struct btrfs_super_block *super_block = fs_info->super_copy; in btrfs_ioctl_get_features()
5738 struct btrfs_super_block *super_block = fs_info->super_copy; in btrfs_ioctl_set_features()
Dextent-tree.c2741 (u64)btrfs_super_csum_size(fs_info->super_copy)); in btrfs_csum_bytes_to_leaves()
4348 thresh = btrfs_super_total_bytes(fs_info->super_copy); in should_alloc_chunk()
6074 old_val = btrfs_super_bytes_used(info->super_copy); in update_block_group()
6079 btrfs_set_super_bytes_used(info->super_copy, old_val); in update_block_group()
9916 feature = btrfs_super_incompat_flags(info->super_copy); in btrfs_read_block_groups()
9927 cache_gen = btrfs_super_cache_generation(info->super_copy); in btrfs_read_block_groups()
9929 btrfs_super_generation(info->super_copy) != cache_gen) in btrfs_read_block_groups()
10712 disk_super = fs_info->super_copy; in btrfs_init_space_info()
10843 u64 total_bytes = btrfs_super_total_bytes(fs_info->super_copy); in btrfs_trim_fs()
Dcompression.c50 u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in compressed_bio_size()
Dscrub.c609 sctx->csum_size = btrfs_super_csum_size(fs_info->super_copy); in scrub_setup_ctx()
Dinode.c963 ASSERT(num_bytes <= btrfs_super_total_bytes(fs_info->super_copy)); in cow_file_range()
4154 dir_id = btrfs_super_root_dir(fs_info->super_copy); in may_destroy_subvol()
Dextent_io.c2331 u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in btrfs_create_repair_bio()