Home
last modified time | relevance | path

Searched refs:disk_header (Results 1 – 3 of 3) sorted by relevance

/drivers/md/
Ddm-log.c251 struct log_header_disk *disk_header; member
324 header_from_disk(&log->header, log->disk_header); in read_header()
434 lc->disk_header = NULL; in create_log_context()
469 lc->disk_header = vmalloc(buf_size); in create_log_context()
470 if (!lc->disk_header) { in create_log_context()
477 lc->io_req.mem.ptr.vma = lc->disk_header; in create_log_context()
478 lc->clean_bits = (void *)lc->disk_header + in create_log_context()
491 vfree(lc->disk_header); in create_log_context()
506 vfree(lc->disk_header); in create_log_context()
571 vfree(lc->disk_header); in disk_dtr()
[all …]
Ddm-snap-persistent.c65 struct disk_header { struct
313 struct disk_header *dh; in read_header()
390 struct disk_header *dh; in write_header()
/drivers/md/persistent-data/
Ddm-space-map-common.c76 struct disk_bitmap_header *disk_header = dm_block_data(b); in dm_bitmap_prepare_for_write() local
78 disk_header->blocknr = cpu_to_le64(dm_block_location(b)); in dm_bitmap_prepare_for_write()
79 disk_header->csum = cpu_to_le32(dm_bm_checksum(&disk_header->not_used, in dm_bitmap_prepare_for_write()
88 struct disk_bitmap_header *disk_header = dm_block_data(b); in dm_bitmap_check() local
91 if (dm_block_location(b) != le64_to_cpu(disk_header->blocknr)) { in dm_bitmap_check()
93 le64_to_cpu(disk_header->blocknr), dm_block_location(b)); in dm_bitmap_check()
97 csum_disk = cpu_to_le32(dm_bm_checksum(&disk_header->not_used, in dm_bitmap_check()
100 if (csum_disk != disk_header->csum) { in dm_bitmap_check()
102 le32_to_cpu(csum_disk), le32_to_cpu(disk_header->csum)); in dm_bitmap_check()