Home
last modified time | relevance | path

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

/linux-4.4.14/fs/btrfs/tests/
Dbtrfs-tests.c92 fs_info->super_copy = kzalloc(sizeof(struct btrfs_super_block), in btrfs_alloc_dummy_fs_info()
94 if (!fs_info->super_copy) { in btrfs_alloc_dummy_fs_info()
102 kfree(fs_info->super_copy); in btrfs_alloc_dummy_fs_info()
156 kfree(fs_info->super_copy); in btrfs_free_dummy_fs_info()
/linux-4.4.14/fs/btrfs/
Dsysfs.c41 struct btrfs_super_block *disk_super = fs_info->super_copy; in get_features()
53 struct btrfs_super_block *disk_super = fs_info->super_copy; in set_features()
364 char *label = fs_info->super_copy->label; in btrfs_label_show()
388 memset(fs_info->super_copy->label, 0, BTRFS_LABEL_SIZE); in btrfs_label_store()
389 memcpy(fs_info->super_copy->label, buf, p_len); in btrfs_label_store()
407 return snprintf(buf, PAGE_SIZE, "%u\n", fs_info->super_copy->nodesize); in btrfs_nodesize_show()
417 return snprintf(buf, PAGE_SIZE, "%u\n", fs_info->super_copy->sectorsize); in btrfs_sectorsize_show()
427 return snprintf(buf, PAGE_SIZE, "%u\n", fs_info->super_copy->sectorsize); in btrfs_clone_alignment_show()
Dfile-item.c98 u16 csum_size = btrfs_super_csum_size(root->fs_info->super_copy); in btrfs_lookup_csum()
179 u16 csum_size = btrfs_super_csum_size(root->fs_info->super_copy); in __btrfs_lookup_bio_sums()
320 u16 csum_size = btrfs_super_csum_size(root->fs_info->super_copy); in btrfs_lookup_csums_range()
522 u16 csum_size = btrfs_super_csum_size(root->fs_info->super_copy); in truncate_one_csum()
575 u16 csum_size = btrfs_super_csum_size(root->fs_info->super_copy); in btrfs_del_csums()
702 u16 csum_size = btrfs_super_csum_size(root->fs_info->super_copy); in btrfs_csum_file_blocks()
Dvolumes.c1859 num_devices = btrfs_super_num_devices(root->fs_info->super_copy) - 1; in btrfs_rm_device()
1860 btrfs_set_super_num_devices(root->fs_info->super_copy, num_devices); in btrfs_rm_device()
2111 struct btrfs_super_block *disk_super = root->fs_info->super_copy; in btrfs_prepare_sprout()
2351 tmp = btrfs_super_total_bytes(root->fs_info->super_copy); in btrfs_init_new_device()
2352 btrfs_set_super_total_bytes(root->fs_info->super_copy, in btrfs_init_new_device()
2355 tmp = btrfs_super_num_devices(root->fs_info->super_copy); in btrfs_init_new_device()
2356 btrfs_set_super_num_devices(root->fs_info->super_copy, in btrfs_init_new_device()
2609 struct btrfs_super_block *super_copy = in btrfs_grow_device() local
2610 device->dev_root->fs_info->super_copy; in btrfs_grow_device()
2619 old_total = btrfs_super_total_bytes(super_copy); in btrfs_grow_device()
[all …]
Ddisk-io.c281 u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in csum_tree_block()
1941 root_backup = info->super_copy->super_roots + i; in find_newest_super_backup()
1949 root_backup = info->super_copy->super_roots; in find_newest_super_backup()
2056 btrfs_super_total_bytes(info->super_copy)); in backup_super_roots()
2058 btrfs_super_bytes_used(info->super_copy)); in backup_super_roots()
2060 btrfs_super_num_devices(info->super_copy)); in backup_super_roots()
2066 memcpy(&info->super_copy->super_roots, in backup_super_roots()
2368 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_replay_log()
2697 memcpy(fs_info->super_copy, bh->b_data, sizeof(*fs_info->super_copy)); in open_ctree()
2698 memcpy(fs_info->super_for_commit, fs_info->super_copy, in open_ctree()
[all …]
Dsuper.c385 cache_gen = btrfs_super_cache_generation(root->fs_info->super_copy); in btrfs_parse_options()
1000 dir_id = btrfs_super_root_dir(fs_info->super_copy); in get_default_subvol_objectid()
1486 fs_info->super_copy = kzalloc(BTRFS_SUPER_INFO_SIZE, GFP_NOFS); in btrfs_mount()
1489 if (!fs_info->super_copy || !fs_info->super_for_commit) { in btrfs_mount()
1704 if (btrfs_super_log_root(fs_info->super_copy) != 0) { in btrfs_remount()
1967 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_statfs()
Dtransaction.c1594 super = root->fs_info->super_copy; in update_super_roots()
2100 btrfs_set_super_log_root(root->fs_info->super_copy, 0); in btrfs_commit_transaction()
2101 btrfs_set_super_log_root_level(root->fs_info->super_copy, 0); in btrfs_commit_transaction()
2102 memcpy(root->fs_info->super_for_commit, root->fs_info->super_copy, in btrfs_commit_transaction()
2103 sizeof(*root->fs_info->super_copy)); in btrfs_commit_transaction()
Dinode-item.c387 struct btrfs_super_block *disk_super = root->fs_info->super_copy; in btrfs_insert_inode_ref()
Dioctl.c381 u64 total_bytes = btrfs_super_total_bytes(fs_info->super_copy); in btrfs_ioctl_fitrim()
1875 dir_id = btrfs_super_root_dir(root->fs_info->super_copy); in may_destroy_subvol()
2727 fi_args->nodesize = root->fs_info->super_copy->nodesize; in btrfs_ioctl_fs_info()
2728 fi_args->sectorsize = root->fs_info->super_copy->sectorsize; in btrfs_ioctl_fs_info()
2729 fi_args->clone_alignment = root->fs_info->super_copy->sectorsize; in btrfs_ioctl_fs_info()
4119 dir_id = btrfs_super_root_dir(root->fs_info->super_copy); in btrfs_ioctl_default_subvol()
5305 memcpy(label, root->fs_info->super_copy->label, BTRFS_LABEL_SIZE); in btrfs_ioctl_get_fslabel()
5323 struct btrfs_super_block *super_block = root->fs_info->super_copy; in btrfs_ioctl_set_fslabel()
5383 struct btrfs_super_block *super_block = root->fs_info->super_copy; in btrfs_ioctl_get_features()
5464 struct btrfs_super_block *super_block = root->fs_info->super_copy; in btrfs_ioctl_set_features()
Dctree.h1522 struct btrfs_super_block *super_copy; member
3740 kfree(fs_info->super_copy); in free_fs_info()
4235 disk_super = fs_info->super_copy; in __btrfs_set_fs_incompat()
4256 disk_super = fs_info->super_copy; in __btrfs_fs_incompat()
Dcompression.c91 u16 csum_size = btrfs_super_csum_size(root->fs_info->super_copy); in compressed_bio_size()
Dextent-tree.c2751 (u64)btrfs_super_csum_size(root->fs_info->super_copy)); in btrfs_csum_bytes_to_leaves()
4244 thresh = btrfs_super_total_bytes(root->fs_info->super_copy); in should_alloc_chunk()
5289 int csum_size = btrfs_super_csum_size(fs_info->super_copy); in calc_global_metadata_size()
5860 old_val = btrfs_super_bytes_used(info->super_copy); in update_block_group()
5865 btrfs_set_super_bytes_used(info->super_copy, old_val); in update_block_group()
9699 cache_gen = btrfs_super_cache_generation(root->fs_info->super_copy); in btrfs_read_block_groups()
9701 btrfs_super_generation(root->fs_info->super_copy) != cache_gen) in btrfs_read_block_groups()
10516 disk_super = fs_info->super_copy; in btrfs_init_space_info()
10647 u64 total_bytes = btrfs_super_total_bytes(fs_info->super_copy); in btrfs_trim_fs()
Dscrub.c497 sctx->csum_size = btrfs_super_csum_size(fs_info->super_copy); in scrub_setup_ctx()
Dextent_io.c2443 u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in btrfs_create_repair_bio()
Dinode.c972 btrfs_super_total_bytes(root->fs_info->super_copy)); in cow_file_range()