Home | History | Annotate | Download | only in zfs

Lines Matching refs:zh

313 	const zil_header_t *zh = zilog->zl_header;
314 boolean_t claimed = !!zh->zh_claim_txg;
315 uint64_t claim_blk_seq = claimed ? zh->zh_claim_blk_seq : UINT64_MAX;
316 uint64_t claim_lr_seq = claimed ? zh->zh_claim_lr_seq : UINT64_MAX;
328 if (!(zh->zh_flags & ZIL_CLAIM_LR_SEQ_VALID))
343 for (blk = zh->zh_log; !BP_IS_HOLE(&blk); blk = next_blk) {
383 ASSERT(!claimed || !(zh->zh_flags & ZIL_CLAIM_LR_SEQ_VALID) ||
543 const zil_header_t *zh = zilog->zl_header;
556 ASSERT(zh->zh_claim_txg == 0);
557 ASSERT(zh->zh_replay_seq == 0);
559 blk = zh->zh_log;
593 * (zh is part of the MOS, so we cannot modify it in open context.)
600 ASSERT(bcmp(&blk, &zh->zh_log, sizeof (blk)) == 0);
617 const zil_header_t *zh = zilog->zl_header;
627 zilog->zl_old_header = *zh; /* debugging aid */
629 if (BP_IS_HOLE(&zh->zh_log))
644 ASSERT(zh->zh_claim_txg == 0);
675 zil_header_t *zh;
694 zh = zil_header_in_syncing_context(zilog);
697 if (!BP_IS_HOLE(&zh->zh_log))
698 zio_free_zil(zilog->zl_spa, first_txg, &zh->zh_log);
699 BP_ZERO(&zh->zh_log);
712 ASSERT3U(zh->zh_claim_txg, <=, first_txg);
713 if (zh->zh_claim_txg == 0 && !BP_IS_HOLE(&zh->zh_log)) {
716 zh->zh_claim_txg = first_txg;
717 zh->zh_claim_blk_seq = zilog->zl_parse_blk_seq;
718 zh->zh_claim_lr_seq = zilog->zl_parse_lr_seq;
720 zh->zh_flags |= ZIL_REPLAY_NEEDED;
721 zh->zh_flags |= ZIL_CLAIM_LR_SEQ_VALID;
1656 zil_header_t *zh = zil_header_in_syncing_context(zilog);
1674 ASSERT(zh->zh_replay_seq < *replayed_seq);
1675 zh->zh_replay_seq = *replayed_seq;
1680 blkptr_t blk = zh->zh_log;
1684 bzero(zh, sizeof (zil_header_t));
1697 zh->zh_log = blk;
1702 zh->zh_log = lwb->lwb_blk;
1716 BP_ZERO(&zh->zh_log);
1923 const zil_header_t *zh;
1932 zh = zilog->zl_header;
1934 if (zh->zh_flags & ZIL_REPLAY_NEEDED) { /* unplayed log */
1947 (zilog->zl_suspend > 0 || BP_IS_HOLE(&zh->zh_log))) {
1980 if (BP_IS_HOLE(&zh->zh_log)) {
2050 const zil_header_t *zh = zilog->zl_header;
2057 if (lr->lrc_seq <= zh->zh_replay_seq) /* already replayed */
2144 const zil_header_t *zh = zilog->zl_header;
2147 if ((zh->zh_flags & ZIL_REPLAY_NEEDED) == 0) {
2154 zr.zr_byteswap = BP_SHOULD_BYTESWAP(&zh->zh_log);
2166 zh->zh_claim_txg);