Home
last modified time | relevance | path

Searched refs:disk_super (Results 1 – 9 of 9) sorted by relevance

/openbmc/linux/fs/btrfs/
H A Dfs.c11 struct btrfs_super_block *disk_super; in __btrfs_set_fs_incompat() local
14 disk_super = fs_info->super_copy; in __btrfs_set_fs_incompat()
15 features = btrfs_super_incompat_flags(disk_super); in __btrfs_set_fs_incompat()
18 features = btrfs_super_incompat_flags(disk_super); in __btrfs_set_fs_incompat()
34 struct btrfs_super_block *disk_super; in __btrfs_clear_fs_incompat() local
37 disk_super = fs_info->super_copy; in __btrfs_clear_fs_incompat()
38 features = btrfs_super_incompat_flags(disk_super); in __btrfs_clear_fs_incompat()
57 struct btrfs_super_block *disk_super; in __btrfs_set_fs_compat_ro() local
60 disk_super = fs_info->super_copy; in __btrfs_set_fs_compat_ro()
80 struct btrfs_super_block *disk_super; in __btrfs_clear_fs_compat_ro() local
[all …]
H A Dvolumes.c508 return find_fsid(disk_super->fsid, disk_super->metadata_uuid); in find_fsid_with_metadata_uuid()
535 if (IS_ERR(*disk_super)) { in btrfs_get_bdev_and_sb()
536 ret = PTR_ERR(*disk_super); in btrfs_get_bdev_and_sb()
627 &bdev, &disk_super); in btrfs_open_one_device()
880 if (disk_super->label[0]) in device_list_add()
1346 if (disk_super->label[0] && disk_super->label[BTRFS_LABEL_SIZE - 1]) in btrfs_read_disk_super()
1349 return disk_super; in btrfs_read_disk_super()
1408 if (IS_ERR(disk_super)) { in btrfs_scan_one_device()
1409 device = ERR_CAST(disk_super); in btrfs_scan_one_device()
2059 if (IS_ERR(disk_super)) in btrfs_scratch_superblock()
[all …]
H A Ddisk-io.c3172 struct btrfs_super_block *disk_super; in open_ctree() local
3205 if (IS_ERR(disk_super)) { in open_ctree()
3206 ret = PTR_ERR(disk_super); in open_ctree()
3220 btrfs_release_disk_super(disk_super); in open_ctree()
3228 btrfs_release_disk_super(disk_super); in open_ctree()
3239 btrfs_release_disk_super(disk_super); in open_ctree()
3249 btrfs_release_disk_super(disk_super); in open_ctree()
3251 disk_super = fs_info->super_copy; in open_ctree()
3272 if (!btrfs_super_root(disk_super)) { in open_ctree()
3775 struct btrfs_super_block *disk_super; in write_dev_supers() local
[all …]
H A Dsysfs.c124 struct btrfs_super_block *disk_super = fs_info->super_copy; in get_features() local
126 return btrfs_super_compat_flags(disk_super); in get_features()
128 return btrfs_super_compat_ro_flags(disk_super); in get_features()
130 return btrfs_super_incompat_flags(disk_super); in get_features()
136 struct btrfs_super_block *disk_super = fs_info->super_copy; in set_features() local
138 btrfs_set_super_compat_flags(disk_super, features); in set_features()
140 btrfs_set_super_compat_ro_flags(disk_super, features); in set_features()
142 btrfs_set_super_incompat_flags(disk_super, features); in set_features()
H A Dspace-info.c264 struct btrfs_super_block *disk_super; in btrfs_init_space_info() local
270 disk_super = fs_info->super_copy; in btrfs_init_space_info()
271 if (!btrfs_super_root(disk_super)) in btrfs_init_space_info()
274 features = btrfs_super_incompat_flags(disk_super); in btrfs_init_space_info()
H A Dinode-item.c373 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_insert_inode_ref() local
376 if (btrfs_super_incompat_flags(disk_super) in btrfs_insert_inode_ref()
H A Dsuper.c2038 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_statfs() local
2080 buf->f_blocks = div_u64(btrfs_super_total_bytes(disk_super), factor); in btrfs_statfs()
/openbmc/linux/drivers/md/
H A Ddm-cache-metadata.c180 disk_super->csum = cpu_to_le32(dm_bm_checksum(&disk_super->flags, in sb_prepare_for_write()
222 if (csum_le != disk_super->csum) { in sb_check()
361 disk_super = dm_block_data(sblock); in __write_initial_superblock()
362 disk_super->flags = 0; in __write_initial_superblock()
363 memset(disk_super->uuid, 0, sizeof(disk_super->uuid)); in __write_initial_superblock()
366 memset(disk_super->policy_name, 0, sizeof(disk_super->policy_name)); in __write_initial_superblock()
367 memset(disk_super->policy_version, 0, sizeof(disk_super->policy_version)); in __write_initial_superblock()
370 __copy_sm_root(cmd, disk_super); in __write_initial_superblock()
632 update_flags(disk_super, mutator); in __begin_transaction_flags()
710 strncpy(disk_super->policy_name, cmd->policy_name, sizeof(disk_super->policy_name)); in __commit_transaction()
[all …]
H A Ddm-thin-metadata.c259 disk_super->csum = cpu_to_le32(dm_bm_checksum(&disk_super->flags, in sb_prepare_for_write()
288 if (csum_le != disk_super->csum) { in sb_check()
580 disk_super->flags = 0; in __write_initial_superblock()
581 memset(disk_super->uuid, 0, sizeof(disk_super->uuid)); in __write_initial_superblock()
584 disk_super->time = 0; in __write_initial_superblock()
585 disk_super->trans_id = 0; in __write_initial_superblock()
586 disk_super->held_root = 0; in __write_initial_superblock()
588 copy_sm_roots(pmd, disk_super); in __write_initial_superblock()
934 copy_sm_roots(pmd, disk_super); in __commit_transaction()
1362 disk_super = dm_block_data(copy); in __reserve_metadata_snap()
[all …]