Searched refs:disk_super (Results 1 – 9 of 9) sorted by relevance
/linux-6.1.9/drivers/md/ |
D | dm-cache-metadata.c | 175 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 …]
|
D | dm-thin-metadata.c | 252 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-6.1.9/fs/btrfs/ |
D | volumes.c | 456 struct btrfs_super_block *disk_super) in find_fsid_with_metadata_uuid() argument 469 memcmp(disk_super->metadata_uuid, fs_devices->fsid, in find_fsid_with_metadata_uuid() 486 memcmp(disk_super->metadata_uuid, fs_devices->metadata_uuid, in find_fsid_with_metadata_uuid() 492 return find_fsid(disk_super->fsid, disk_super->metadata_uuid); in find_fsid_with_metadata_uuid() 499 struct btrfs_super_block **disk_super) in btrfs_get_bdev_and_sb() argument 518 *disk_super = btrfs_read_dev_super(*bdev); in btrfs_get_bdev_and_sb() 519 if (IS_ERR(*disk_super)) { in btrfs_get_bdev_and_sb() 520 ret = PTR_ERR(*disk_super); in btrfs_get_bdev_and_sb() 601 struct btrfs_super_block *disk_super; in btrfs_open_one_device() local 611 &bdev, &disk_super); in btrfs_open_one_device() [all …]
|
D | disk-io.c | 2361 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_replay_log() local 2362 u64 bytenr = btrfs_super_log_root(disk_super); in btrfs_replay_log() 2363 int level = btrfs_super_log_root_level(disk_super); in btrfs_replay_log() 3320 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_check_features() local 3321 u64 incompat = btrfs_super_incompat_flags(disk_super); in btrfs_check_features() 3322 const u64 compat_ro = btrfs_super_compat_ro_flags(disk_super); in btrfs_check_features() 3354 if (btrfs_super_nodesize(disk_super) > PAGE_SIZE) in btrfs_check_features() 3369 if (compat_ro_unsupp && btrfs_super_log_root(disk_super) && in btrfs_check_features() 3405 btrfs_set_super_incompat_flags(disk_super, incompat); in btrfs_check_features() 3420 struct btrfs_super_block *disk_super; in open_ctree() local [all …]
|
D | ctree.h | 3882 struct btrfs_super_block *disk_super; in __btrfs_set_fs_incompat() local 3885 disk_super = fs_info->super_copy; in __btrfs_set_fs_incompat() 3886 features = btrfs_super_incompat_flags(disk_super); in __btrfs_set_fs_incompat() 3889 features = btrfs_super_incompat_flags(disk_super); in __btrfs_set_fs_incompat() 3892 btrfs_set_super_incompat_flags(disk_super, features); in __btrfs_set_fs_incompat() 3908 struct btrfs_super_block *disk_super; in __btrfs_clear_fs_incompat() local 3911 disk_super = fs_info->super_copy; in __btrfs_clear_fs_incompat() 3912 features = btrfs_super_incompat_flags(disk_super); in __btrfs_clear_fs_incompat() 3915 features = btrfs_super_incompat_flags(disk_super); in __btrfs_clear_fs_incompat() 3918 btrfs_set_super_incompat_flags(disk_super, features); in __btrfs_clear_fs_incompat() [all …]
|
D | sysfs.c | 121 struct btrfs_super_block *disk_super = fs_info->super_copy; in get_features() local 123 return btrfs_super_compat_flags(disk_super); in get_features() 125 return btrfs_super_compat_ro_flags(disk_super); in get_features() 127 return btrfs_super_incompat_flags(disk_super); in get_features() 133 struct btrfs_super_block *disk_super = fs_info->super_copy; in set_features() local 135 btrfs_set_super_compat_flags(disk_super, features); in set_features() 137 btrfs_set_super_compat_ro_flags(disk_super, features); in set_features() 139 btrfs_set_super_incompat_flags(disk_super, features); in set_features()
|
D | space-info.c | 261 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()
|
D | inode-item.c | 367 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()
|
D | super.c | 2332 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_statfs() local 2374 buf->f_blocks = div_u64(btrfs_super_total_bytes(disk_super), factor); in btrfs_statfs()
|