Searched refs:hb_block (Results 1 - 1 of 1) sorted by relevance
/linux-4.1.27/fs/ocfs2/cluster/ |
H A D | heartbeat.c | 503 struct o2hb_disk_heartbeat_block *hb_block) o2hb_compute_block_crc_le() 511 old_cksum = hb_block->hb_cksum; o2hb_compute_block_crc_le() 512 hb_block->hb_cksum = 0; o2hb_compute_block_crc_le() 514 ret = crc32_le(0, (unsigned char *) hb_block, reg->hr_block_bytes); o2hb_compute_block_crc_le() 516 hb_block->hb_cksum = old_cksum; o2hb_compute_block_crc_le() 521 static void o2hb_dump_slot(struct o2hb_disk_heartbeat_block *hb_block) o2hb_dump_slot() argument 525 (long long)le64_to_cpu(hb_block->hb_seq), o2hb_dump_slot() 526 hb_block->hb_node, le32_to_cpu(hb_block->hb_cksum), o2hb_dump_slot() 527 (long long)le64_to_cpu(hb_block->hb_generation)); o2hb_dump_slot() 531 struct o2hb_disk_heartbeat_block *hb_block) o2hb_verify_crc() 535 read = le32_to_cpu(hb_block->hb_cksum); o2hb_verify_crc() 536 computed = o2hb_compute_block_crc_le(reg, hb_block); o2hb_verify_crc() 551 struct o2hb_disk_heartbeat_block *hb_block; o2hb_check_own_slot() local 559 hb_block = slot->ds_raw_block; o2hb_check_own_slot() 560 if (le64_to_cpu(hb_block->hb_seq) == slot->ds_last_time && o2hb_check_own_slot() 561 le64_to_cpu(hb_block->hb_generation) == slot->ds_last_generation && o2hb_check_own_slot() 562 hb_block->hb_node == slot->ds_node_num) o2hb_check_own_slot() 569 if (hb_block->hb_node != slot->ds_node_num) o2hb_check_own_slot() 571 else if (le64_to_cpu(hb_block->hb_generation) != o2hb_check_own_slot() 580 (unsigned long long)slot->ds_last_time, hb_block->hb_node, o2hb_check_own_slot() 581 (unsigned long long)le64_to_cpu(hb_block->hb_generation), o2hb_check_own_slot() 582 (unsigned long long)le64_to_cpu(hb_block->hb_seq)); o2hb_check_own_slot() 593 struct o2hb_disk_heartbeat_block *hb_block; o2hb_prepare_block() local 598 hb_block = (struct o2hb_disk_heartbeat_block *)slot->ds_raw_block; o2hb_prepare_block() 599 memset(hb_block, 0, reg->hr_block_bytes); o2hb_prepare_block() 605 hb_block->hb_seq = cpu_to_le64(cputime); o2hb_prepare_block() 606 hb_block->hb_node = node_num; o2hb_prepare_block() 607 hb_block->hb_generation = cpu_to_le64(generation); o2hb_prepare_block() 608 hb_block->hb_dead_ms = cpu_to_le32(o2hb_dead_threshold * O2HB_REGION_TIMEOUT_MS); o2hb_prepare_block() 611 hb_block->hb_cksum = cpu_to_le32(o2hb_compute_block_crc_le(reg, o2hb_prepare_block() 612 hb_block)); o2hb_prepare_block() 616 le32_to_cpu(hb_block->hb_cksum)); o2hb_prepare_block() 774 struct o2hb_disk_heartbeat_block *hb_block = reg->hr_tmp_block; o2hb_check_slot() local 781 memcpy(hb_block, slot->ds_raw_block, reg->hr_block_bytes); o2hb_check_slot() 796 if (!o2hb_verify_crc(reg, hb_block)) { o2hb_check_slot() 812 o2hb_dump_slot(hb_block); o2hb_check_slot() 820 cputime = le64_to_cpu(hb_block->hb_seq); o2hb_check_slot() 832 if (slot->ds_last_generation != le64_to_cpu(hb_block->hb_generation)) { o2hb_check_slot() 838 (long long)le64_to_cpu(hb_block->hb_generation)); o2hb_check_slot() 841 slot->ds_last_generation = le64_to_cpu(hb_block->hb_generation); o2hb_check_slot() 846 le32_to_cpu(hb_block->hb_cksum), o2hb_check_slot() 847 (unsigned long long)le64_to_cpu(hb_block->hb_seq), o2hb_check_slot() 887 slot_dead_ms = le32_to_cpu(hb_block->hb_dead_ms); o2hb_check_slot() 1688 struct o2hb_disk_heartbeat_block *hb_block; o2hb_populate_slot_data() local 1702 hb_block = (struct o2hb_disk_heartbeat_block *) slot->ds_raw_block; o2hb_populate_slot_data() 1706 slot->ds_last_time = le64_to_cpu(hb_block->hb_seq); o2hb_populate_slot_data() 1707 slot->ds_last_generation = le64_to_cpu(hb_block->hb_generation); o2hb_populate_slot_data() 502 o2hb_compute_block_crc_le(struct o2hb_region *reg, struct o2hb_disk_heartbeat_block *hb_block) o2hb_compute_block_crc_le() argument 530 o2hb_verify_crc(struct o2hb_region *reg, struct o2hb_disk_heartbeat_block *hb_block) o2hb_verify_crc() argument
|
Completed in 52 milliseconds