Lines Matching defs:zh
297 const zil_header_t *zh = zilog->zl_header;
298 boolean_t claimed = !!zh->zh_claim_txg;
299 uint64_t claim_blk_seq = claimed ? zh->zh_claim_blk_seq : UINT64_MAX;
300 uint64_t claim_lr_seq = claimed ? zh->zh_claim_lr_seq : UINT64_MAX;
312 if (!(zh->zh_flags & ZIL_CLAIM_LR_SEQ_VALID))
327 for (blk = zh->zh_log; !BP_IS_HOLE(&blk); blk = next_blk) {
367 ASSERT(!claimed || !(zh->zh_flags & ZIL_CLAIM_LR_SEQ_VALID) ||
505 const zil_header_t *zh = zilog->zl_header;
517 ASSERT(zh->zh_claim_txg == 0);
518 ASSERT(zh->zh_replay_seq == 0);
520 blk = zh->zh_log;
554 * (zh is part of the MOS, so we cannot modify it in open context.)
561 ASSERT(bcmp(&blk, &zh->zh_log, sizeof (blk)) == 0);
578 const zil_header_t *zh = zilog->zl_header;
588 zilog->zl_old_header = *zh; /* debugging aid */
590 if (BP_IS_HOLE(&zh->zh_log))
605 ASSERT(zh->zh_claim_txg == 0);
636 zil_header_t *zh;
655 zh = zil_header_in_syncing_context(zilog);
658 if (!BP_IS_HOLE(&zh->zh_log))
659 zio_free_zil(zilog->zl_spa, first_txg, &zh->zh_log);
660 BP_ZERO(&zh->zh_log);
673 ASSERT3U(zh->zh_claim_txg, <=, first_txg);
674 if (zh->zh_claim_txg == 0 && !BP_IS_HOLE(&zh->zh_log)) {
677 zh->zh_claim_txg = first_txg;
678 zh->zh_claim_blk_seq = zilog->zl_parse_blk_seq;
679 zh->zh_claim_lr_seq = zilog->zl_parse_lr_seq;
681 zh->zh_flags |= ZIL_REPLAY_NEEDED;
682 zh->zh_flags |= ZIL_CLAIM_LR_SEQ_VALID;
1592 zil_header_t *zh = zil_header_in_syncing_context(zilog);
1610 ASSERT(zh->zh_replay_seq < *replayed_seq);
1611 zh->zh_replay_seq = *replayed_seq;
1616 blkptr_t blk = zh->zh_log;
1620 bzero(zh, sizeof (zil_header_t));
1633 zh->zh_log = blk;
1638 zh->zh_log = lwb->lwb_blk;
1652 BP_ZERO(&zh->zh_log);
1856 const zil_header_t *zh;
1865 zh = zilog->zl_header;
1867 if (zh->zh_flags & ZIL_REPLAY_NEEDED) { /* unplayed log */
1880 (zilog->zl_suspend > 0 || BP_IS_HOLE(&zh->zh_log))) {
1913 if (BP_IS_HOLE(&zh->zh_log)) {
1983 const zil_header_t *zh = zilog->zl_header;
1990 if (lr->lrc_seq <= zh->zh_replay_seq) /* already replayed */
2077 const zil_header_t *zh = zilog->zl_header;
2080 if ((zh->zh_flags & ZIL_REPLAY_NEEDED) == 0) {
2087 zr.zr_byteswap = BP_SHOULD_BYTESWAP(&zh->zh_log);
2099 zh->zh_claim_txg);