Lines Matching defs:zh
464 const zil_header_t *zh = zilog->zl_header;
465 boolean_t claimed = !!zh->zh_claim_txg;
466 uint64_t claim_blk_seq = claimed ? zh->zh_claim_blk_seq : UINT64_MAX;
467 uint64_t claim_lr_seq = claimed ? zh->zh_claim_lr_seq : UINT64_MAX;
478 if (!(zh->zh_flags & ZIL_CLAIM_LR_SEQ_VALID))
492 for (blk = zh->zh_log; !BP_IS_HOLE(&blk); blk = next_blk) {
978 const zil_header_t *zh = zilog->zl_header;
993 ASSERT(zh->zh_claim_txg == 0);
994 ASSERT(zh->zh_replay_seq == 0);
996 blk = zh->zh_log;
1029 * (zh is part of the MOS, so we cannot modify it in open context.)
1060 ASSERT(error != 0 || memcmp(&blk, &zh->zh_log, sizeof (blk)) == 0);
1079 const zil_header_t *zh = zilog->zl_header;
1089 zilog->zl_old_header = *zh; /* debugging aid */
1091 if (BP_IS_HOLE(&zh->zh_log))
1106 ASSERT(zh->zh_claim_txg == 0);
1139 zil_header_t *zh;
1159 zh = zil_header_in_syncing_context(zilog);
1192 zh->zh_claim_txg == 0)) {
1193 if (!BP_IS_HOLE(&zh->zh_log)) {
1197 BP_ZERO(&zh->zh_log);
1218 ASSERT3U(zh->zh_claim_txg, <=, first_txg);
1219 if (zh->zh_claim_txg == 0 && !BP_IS_HOLE(&zh->zh_log)) {
1222 zh->zh_claim_txg = first_txg;
1223 zh->zh_claim_blk_seq = zilog->zl_parse_blk_seq;
1224 zh->zh_claim_lr_seq = zilog->zl_parse_lr_seq;
1226 zh->zh_flags |= ZIL_REPLAY_NEEDED;
1227 zh->zh_flags |= ZIL_CLAIM_LR_SEQ_VALID;
1291 zil_header_t *zh = zil_header_in_syncing_context(zilog);
1293 zh->zh_claim_txg == 0)
3700 zil_header_t *zh = zil_header_in_syncing_context(zilog);
3720 ASSERT(zh->zh_replay_seq < *replayed_seq);
3721 zh->zh_replay_seq = *replayed_seq;
3726 blkptr_t blk = zh->zh_log;
3731 memset(zh, 0, sizeof (zil_header_t));
3745 zh->zh_log = blk;
3760 zh->zh_log = lwb->lwb_blk;
3776 BP_ZERO(&zh->zh_log);
4053 const zil_header_t *zh;
4062 zh = zilog->zl_header;
4064 if (zh->zh_flags & ZIL_REPLAY_NEEDED) { /* unplayed log */
4077 (zilog->zl_suspend > 0 || BP_IS_HOLE(&zh->zh_log))) {
4110 if (BP_IS_HOLE(&zh->zh_log)) {
4214 const zil_header_t *zh = zilog->zl_header;
4221 if (lr->lrc_seq <= zh->zh_replay_seq) /* already replayed */
4311 const zil_header_t *zh = zilog->zl_header;
4314 if ((zh->zh_flags & ZIL_REPLAY_NEEDED) == 0) {
4320 zr.zr_byteswap = BP_SHOULD_BYTESWAP(&zh->zh_log);
4332 zh->zh_claim_txg, B_TRUE);