Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/md/
Ddm-cache-metadata.c175 struct cache_disk_superblock *disk_super = dm_block_data(b); in sb_prepare_for_write() local
177 disk_super->blocknr = cpu_to_le64(dm_block_location(b)); in sb_prepare_for_write()
178 disk_super->csum = cpu_to_le32(dm_bm_checksum(&disk_super->flags, in sb_prepare_for_write()
183 static int check_metadata_version(struct cache_disk_superblock *disk_super) in check_metadata_version() argument
185 uint32_t metadata_version = le32_to_cpu(disk_super->version); in check_metadata_version()
200 struct cache_disk_superblock *disk_super = dm_block_data(b); in sb_check() local
203 if (dm_block_location(b) != le64_to_cpu(disk_super->blocknr)) { in sb_check()
205 le64_to_cpu(disk_super->blocknr), in sb_check()
210 if (le64_to_cpu(disk_super->magic) != CACHE_SUPERBLOCK_MAGIC) { in sb_check()
212 le64_to_cpu(disk_super->magic), in sb_check()
[all …]
Ddm-thin-metadata.c252 struct thin_disk_superblock *disk_super = dm_block_data(b); in sb_prepare_for_write() local
254 disk_super->blocknr = cpu_to_le64(dm_block_location(b)); in sb_prepare_for_write()
255 disk_super->csum = cpu_to_le32(dm_bm_checksum(&disk_super->flags, in sb_prepare_for_write()
264 struct thin_disk_superblock *disk_super = dm_block_data(b); in sb_check() local
267 if (dm_block_location(b) != le64_to_cpu(disk_super->blocknr)) { in sb_check()
269 "wanted %llu", le64_to_cpu(disk_super->blocknr), in sb_check()
274 if (le64_to_cpu(disk_super->magic) != THIN_SUPERBLOCK_MAGIC) { in sb_check()
276 "wanted %llu", le64_to_cpu(disk_super->magic), in sb_check()
281 csum_le = cpu_to_le32(dm_bm_checksum(&disk_super->flags, in sb_check()
284 if (csum_le != disk_super->csum) { in sb_check()
[all …]
/linux-5.19.10/fs/btrfs/
Dvolumes.c448 struct btrfs_super_block *disk_super) in find_fsid_with_metadata_uuid() argument
461 memcmp(disk_super->metadata_uuid, fs_devices->fsid, in find_fsid_with_metadata_uuid()
478 memcmp(disk_super->metadata_uuid, fs_devices->metadata_uuid, in find_fsid_with_metadata_uuid()
484 return find_fsid(disk_super->fsid, disk_super->metadata_uuid); in find_fsid_with_metadata_uuid()
491 struct btrfs_super_block **disk_super) in btrfs_get_bdev_and_sb() argument
510 *disk_super = btrfs_read_dev_super(*bdev); in btrfs_get_bdev_and_sb()
511 if (IS_ERR(*disk_super)) { in btrfs_get_bdev_and_sb()
512 ret = PTR_ERR(*disk_super); in btrfs_get_bdev_and_sb()
593 struct btrfs_super_block *disk_super; in btrfs_open_one_device() local
603 &bdev, &disk_super); in btrfs_open_one_device()
[all …]
Ddisk-io.c2466 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_replay_log() local
2467 u64 bytenr = btrfs_super_log_root(disk_super); in btrfs_replay_log()
2468 int level = btrfs_super_log_root_level(disk_super); in btrfs_replay_log()
3396 struct btrfs_super_block *disk_super; in open_ctree() local
3435 disk_super = btrfs_read_dev_super(fs_devices->latest_dev->bdev); in open_ctree()
3436 if (IS_ERR(disk_super)) { in open_ctree()
3437 err = PTR_ERR(disk_super); in open_ctree()
3445 csum_type = btrfs_super_csum_type(disk_super); in open_ctree()
3450 btrfs_release_disk_super(disk_super); in open_ctree()
3454 fs_info->csum_size = btrfs_super_csum_size(disk_super); in open_ctree()
[all …]
Dctree.h3777 struct btrfs_super_block *disk_super; in __btrfs_set_fs_incompat() local
3780 disk_super = fs_info->super_copy; in __btrfs_set_fs_incompat()
3781 features = btrfs_super_incompat_flags(disk_super); in __btrfs_set_fs_incompat()
3784 features = btrfs_super_incompat_flags(disk_super); in __btrfs_set_fs_incompat()
3787 btrfs_set_super_incompat_flags(disk_super, features); in __btrfs_set_fs_incompat()
3803 struct btrfs_super_block *disk_super; in __btrfs_clear_fs_incompat() local
3806 disk_super = fs_info->super_copy; in __btrfs_clear_fs_incompat()
3807 features = btrfs_super_incompat_flags(disk_super); in __btrfs_clear_fs_incompat()
3810 features = btrfs_super_incompat_flags(disk_super); in __btrfs_clear_fs_incompat()
3813 btrfs_set_super_incompat_flags(disk_super, features); in __btrfs_clear_fs_incompat()
[all …]
Dsysfs.c115 struct btrfs_super_block *disk_super = fs_info->super_copy; in get_features() local
117 return btrfs_super_compat_flags(disk_super); in get_features()
119 return btrfs_super_compat_ro_flags(disk_super); in get_features()
121 return btrfs_super_incompat_flags(disk_super); in get_features()
127 struct btrfs_super_block *disk_super = fs_info->super_copy; in set_features() local
129 btrfs_set_super_compat_flags(disk_super, features); in set_features()
131 btrfs_set_super_compat_ro_flags(disk_super, features); in set_features()
133 btrfs_set_super_incompat_flags(disk_super, features); in set_features()
Dspace-info.c261 struct btrfs_super_block *disk_super; in btrfs_init_space_info() local
267 disk_super = fs_info->super_copy; in btrfs_init_space_info()
268 if (!btrfs_super_root(disk_super)) in btrfs_init_space_info()
271 features = btrfs_super_incompat_flags(disk_super); in btrfs_init_space_info()
Dinode-item.c367 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_insert_inode_ref() local
370 if (btrfs_super_incompat_flags(disk_super) in btrfs_insert_inode_ref()
Dsuper.c2340 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_statfs() local
2382 buf->f_blocks = div_u64(btrfs_super_total_bytes(disk_super), factor); in btrfs_statfs()