Searched refs:disk_super (Results 1 – 9 of 9) sorted by relevance
/Linux-v4.19/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 | 236 struct thin_disk_superblock *disk_super = dm_block_data(b); in sb_prepare_for_write() local 238 disk_super->blocknr = cpu_to_le64(dm_block_location(b)); in sb_prepare_for_write() 239 disk_super->csum = cpu_to_le32(dm_bm_checksum(&disk_super->flags, in sb_prepare_for_write() 248 struct thin_disk_superblock *disk_super = dm_block_data(b); in sb_check() local 251 if (dm_block_location(b) != le64_to_cpu(disk_super->blocknr)) { in sb_check() 253 "wanted %llu", le64_to_cpu(disk_super->blocknr), in sb_check() 258 if (le64_to_cpu(disk_super->magic) != THIN_SUPERBLOCK_MAGIC) { in sb_check() 260 "wanted %llu", le64_to_cpu(disk_super->magic), in sb_check() 265 csum_le = cpu_to_le32(dm_bm_checksum(&disk_super->flags, in sb_check() 268 if (csum_le != disk_super->csum) { in sb_check() [all …]
|
/Linux-v4.19/fs/btrfs/ |
D | sysfs.c | 26 struct btrfs_super_block *disk_super = fs_info->super_copy; in get_features() local 28 return btrfs_super_compat_flags(disk_super); in get_features() 30 return btrfs_super_compat_ro_flags(disk_super); in get_features() 32 return btrfs_super_incompat_flags(disk_super); in get_features() 38 struct btrfs_super_block *disk_super = fs_info->super_copy; in set_features() local 40 btrfs_set_super_compat_flags(disk_super, features); in set_features() 42 btrfs_set_super_compat_ro_flags(disk_super, features); in set_features() 44 btrfs_set_super_incompat_flags(disk_super, features); in set_features()
|
D | ctree.h | 3518 struct btrfs_super_block *disk_super; in __btrfs_set_fs_incompat() local 3521 disk_super = fs_info->super_copy; in __btrfs_set_fs_incompat() 3522 features = btrfs_super_incompat_flags(disk_super); in __btrfs_set_fs_incompat() 3525 features = btrfs_super_incompat_flags(disk_super); in __btrfs_set_fs_incompat() 3528 btrfs_set_super_incompat_flags(disk_super, features); in __btrfs_set_fs_incompat() 3542 struct btrfs_super_block *disk_super; in __btrfs_clear_fs_incompat() local 3545 disk_super = fs_info->super_copy; in __btrfs_clear_fs_incompat() 3546 features = btrfs_super_incompat_flags(disk_super); in __btrfs_clear_fs_incompat() 3549 features = btrfs_super_incompat_flags(disk_super); in __btrfs_clear_fs_incompat() 3552 btrfs_set_super_incompat_flags(disk_super, features); in __btrfs_clear_fs_incompat() [all …]
|
D | volumes.c | 687 struct btrfs_super_block *disk_super; in btrfs_open_one_device() local 701 disk_super = (struct btrfs_super_block *)bh->b_data; in btrfs_open_one_device() 702 devid = btrfs_stack_device_id(&disk_super->dev_item); in btrfs_open_one_device() 706 if (memcmp(device->uuid, disk_super->dev_item.uuid, BTRFS_UUID_SIZE)) in btrfs_open_one_device() 709 device->generation = btrfs_super_generation(disk_super); in btrfs_open_one_device() 711 if (btrfs_super_flags(disk_super) & BTRFS_SUPER_FLAG_SEEDING) { in btrfs_open_one_device() 754 struct btrfs_super_block *disk_super, in device_list_add() argument 760 u64 found_transid = btrfs_super_generation(disk_super); in device_list_add() 761 u64 devid = btrfs_stack_device_id(&disk_super->dev_item); in device_list_add() 763 fs_devices = find_fsid(disk_super->fsid); in device_list_add() [all …]
|
D | disk-io.c | 2272 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_replay_log() local 2273 u64 bytenr = btrfs_super_log_root(disk_super); in btrfs_replay_log() 2274 int level = btrfs_super_log_root_level(disk_super); in btrfs_replay_log() 2613 struct btrfs_super_block *disk_super; in open_ctree() local 2834 disk_super = fs_info->super_copy; in open_ctree() 2835 if (!btrfs_super_root(disk_super)) in open_ctree() 2839 if (btrfs_super_flags(disk_super) & BTRFS_SUPER_FLAG_ERROR) in open_ctree() 2846 generation = btrfs_super_generation(disk_super); in open_ctree() 2861 features = btrfs_super_incompat_flags(disk_super) & in open_ctree() 2871 features = btrfs_super_incompat_flags(disk_super); in open_ctree() [all …]
|
D | inode-item.c | 382 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_insert_inode_ref() local 385 if (btrfs_super_incompat_flags(disk_super) in btrfs_insert_inode_ref()
|
D | super.c | 2086 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_statfs() local 2132 buf->f_blocks = div_u64(btrfs_super_total_bytes(disk_super), factor); in btrfs_statfs()
|
D | extent-tree.c | 10706 struct btrfs_super_block *disk_super; in btrfs_init_space_info() local 10712 disk_super = fs_info->super_copy; in btrfs_init_space_info() 10713 if (!btrfs_super_root(disk_super)) in btrfs_init_space_info() 10716 features = btrfs_super_incompat_flags(disk_super); in btrfs_init_space_info()
|