Lines Matching defs:zb

368 static void dsl_scan_visitbp(blkptr_t *bp, const zbookmark_phys_t *zb,
409 dsl_scan_check_pause(dsl_scan_t *scn, const zbookmark_phys_t *zb)
412 if (zb && (int64_t)zb->zb_object < 0)
422 if (zb && zb->zb_level != 0)
448 if (zb) {
450 (longlong_t)zb->zb_objset,
451 (longlong_t)zb->zb_object,
452 (longlong_t)zb->zb_level,
453 (longlong_t)zb->zb_blkid);
454 scn->scn_phys.scn_bookmark = *zb;
480 zbookmark_phys_t zb;
494 SET_BOOKMARK(&zb, zh->zh_log.blk_cksum.zc_word[ZIL_ZC_OBJSET],
497 VERIFY(0 == scan_funcs[scn->scn_phys.scn_func](dp, bp, &zb));
512 zbookmark_phys_t zb;
526 SET_BOOKMARK(&zb, zh->zh_log.blk_cksum.zc_word[ZIL_ZC_OBJSET],
530 VERIFY(0 == scan_funcs[scn->scn_phys.scn_func](dp, bp, &zb));
581 const zbookmark_phys_t *zb)
587 (int64_t)zb->zb_object >= 0) {
592 if (zbookmark_subtree_completed(dnp, zb,
602 if (bcmp(zb, &scn->scn_phys.scn_bookmark, sizeof (*zb)) == 0 ||
603 zb->zb_object > scn->scn_phys.scn_bookmark.zb_object) {
605 (longlong_t)zb->zb_objset,
606 (longlong_t)zb->zb_object,
607 (longlong_t)zb->zb_level,
608 (longlong_t)zb->zb_blkid);
609 bzero(&scn->scn_phys.scn_bookmark, sizeof (*zb));
622 const zbookmark_phys_t *zb, dmu_tx_t *tx)
636 ZIO_PRIORITY_ASYNC_READ, zio_flags, &flags, zb);
642 dsl_scan_prefetch(scn, buf, cbp, zb->zb_objset,
643 zb->zb_object, zb->zb_blkid * epb + i);
648 SET_BOOKMARK(&czb, zb->zb_objset, zb->zb_object,
649 zb->zb_level - 1,
650 zb->zb_blkid * epb + i);
663 ZIO_PRIORITY_ASYNC_READ, zio_flags, &flags, zb);
672 zb->zb_objset, zb->zb_blkid * epb + i, j);
677 cdnp, zb->zb_blkid * epb + i, tx);
687 ZIO_PRIORITY_ASYNC_READ, zio_flags, &flags, zb);
748 dsl_scan_visitbp(blkptr_t *bp, const zbookmark_phys_t *zb,
758 if (dsl_scan_check_pause(scn, zb))
761 if (dsl_scan_check_resume(scn, dnp, zb))
770 "visiting ds=%p/%llu zb=%llx/%llx/%llx/%llx bp=%p",
772 zb->zb_objset, zb->zb_object, zb->zb_level, zb->zb_blkid,
778 if (dsl_scan_recurse(scn, ds, ostype, dnp, &bp_toread, zb, tx) != 0)
800 scan_funcs[scn->scn_phys.scn_func](dp, bp, zb);
808 zbookmark_phys_t zb;
810 SET_BOOKMARK(&zb, ds ? ds->ds_object : DMU_META_OBJSET,
812 dsl_scan_visitbp(bp, &zb, NULL,
1287 zbookmark_phys_t zb = { 0 };
1299 scan_funcs[scn->scn_phys.scn_func](scn->scn_dp, &bp, &zb);
1723 zfs_blkstat_t *zb = &zab->zab_type[l][t];
1726 zb->zb_count++;
1727 zb->zb_asize += BP_GET_ASIZE(bp);
1728 zb->zb_lsize += BP_GET_LSIZE(bp);
1729 zb->zb_psize += BP_GET_PSIZE(bp);
1730 zb->zb_gangs += BP_COUNT_GANG(bp);
1736 zb->zb_ditto_2_of_2_samevdev++;
1746 zb->zb_ditto_2_of_3_samevdev++;
1748 zb->zb_ditto_3_of_3_samevdev++;
1774 const blkptr_t *bp, const zbookmark_phys_t *zb)
1806 if (zb->zb_level == ZB_ZIL_LEVEL)
1859 zio_flags, zb));