Searched refs:disk_super (Results 1 – 2 of 2) sorted by relevance
/drivers/md/ |
D | dm-cache-metadata.c | 129 struct cache_disk_superblock *disk_super = dm_block_data(b); in sb_prepare_for_write() local 131 disk_super->blocknr = cpu_to_le64(dm_block_location(b)); in sb_prepare_for_write() 132 disk_super->csum = cpu_to_le32(dm_bm_checksum(&disk_super->flags, in sb_prepare_for_write() 141 struct cache_disk_superblock *disk_super = dm_block_data(b); in sb_check() local 144 if (dm_block_location(b) != le64_to_cpu(disk_super->blocknr)) { in sb_check() 146 le64_to_cpu(disk_super->blocknr), in sb_check() 151 if (le64_to_cpu(disk_super->magic) != CACHE_SUPERBLOCK_MAGIC) { in sb_check() 153 le64_to_cpu(disk_super->magic), in sb_check() 158 csum_le = cpu_to_le32(dm_bm_checksum(&disk_super->flags, in sb_check() 161 if (csum_le != disk_super->csum) { in sb_check() [all …]
|
D | dm-thin-metadata.c | 221 struct thin_disk_superblock *disk_super = dm_block_data(b); in sb_prepare_for_write() local 223 disk_super->blocknr = cpu_to_le64(dm_block_location(b)); in sb_prepare_for_write() 224 disk_super->csum = cpu_to_le32(dm_bm_checksum(&disk_super->flags, in sb_prepare_for_write() 233 struct thin_disk_superblock *disk_super = dm_block_data(b); in sb_check() local 236 if (dm_block_location(b) != le64_to_cpu(disk_super->blocknr)) { in sb_check() 238 "wanted %llu", le64_to_cpu(disk_super->blocknr), in sb_check() 243 if (le64_to_cpu(disk_super->magic) != THIN_SUPERBLOCK_MAGIC) { in sb_check() 245 "wanted %llu", le64_to_cpu(disk_super->magic), in sb_check() 250 csum_le = cpu_to_le32(dm_bm_checksum(&disk_super->flags, in sb_check() 253 if (csum_le != disk_super->csum) { in sb_check() [all …]
|