Searched refs:disk_header (Results 1 – 3 of 3) sorted by relevance
254 struct log_header_disk *disk_header; member327 header_from_disk(&log->header, log->disk_header); in read_header()437 lc->disk_header = NULL; in create_log_context()471 lc->disk_header = vmalloc(buf_size); in create_log_context()472 if (!lc->disk_header) { in create_log_context()479 lc->io_req.mem.ptr.vma = lc->disk_header; in create_log_context()480 lc->clean_bits = (void *)lc->disk_header + in create_log_context()493 vfree(lc->disk_header); in create_log_context()508 vfree(lc->disk_header); in create_log_context()575 vfree(lc->disk_header); in disk_dtr()[all …]
68 struct disk_header { struct309 struct disk_header *dh; in read_header()385 struct disk_header *dh; in write_header()
79 struct disk_bitmap_header *disk_header = dm_block_data(b); in dm_bitmap_prepare_for_write() local81 disk_header->blocknr = cpu_to_le64(dm_block_location(b)); in dm_bitmap_prepare_for_write()82 disk_header->csum = cpu_to_le32(dm_bm_checksum(&disk_header->not_used, in dm_bitmap_prepare_for_write()91 struct disk_bitmap_header *disk_header = dm_block_data(b); in dm_bitmap_check() local94 if (dm_block_location(b) != le64_to_cpu(disk_header->blocknr)) { in dm_bitmap_check()96 le64_to_cpu(disk_header->blocknr), dm_block_location(b)); in dm_bitmap_check()100 csum_disk = cpu_to_le32(dm_bm_checksum(&disk_header->not_used, in dm_bitmap_check()103 if (csum_disk != disk_header->csum) { in dm_bitmap_check()105 le32_to_cpu(csum_disk), le32_to_cpu(disk_header->csum)); in dm_bitmap_check()