From 8e2b28c853298b03cb26b1bc5eda0b40b2295bfb Mon Sep 17 00:00:00 2001 From: Matthew Ahrens Date: Fri, 10 Mar 2023 10:15:26 -0800 Subject: [PATCH] fix prefetching - no zero --- module/zfs/dmu_traverse.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/module/zfs/dmu_traverse.c b/module/zfs/dmu_traverse.c index 7f10badfbe75..809f7f6165f9 100644 --- a/module/zfs/dmu_traverse.c +++ b/module/zfs/dmu_traverse.c @@ -157,7 +157,7 @@ static resume_skip_t resume_skip_check(const traverse_data_t *td, const dnode_phys_t *dnp, const zbookmark_phys_t *zb) { - if (td->td_resume != NULL && !ZB_IS_ZERO(td->td_resume)) { + if (td->td_resume != NULL) { /* * If we already visited this bp & everything below, * don't bother doing it again. @@ -235,12 +235,6 @@ traverse_visitbp(traverse_data_t *td, const dnode_phys_t *dnp, ASSERT(0); } - if (td->td_resume != NULL && - memcmp(zb, td->td_resume, sizeof (*zb)) == 0) { - /* found the resume point; no longer resuming */ - memset(td->td_resume, 0, sizeof (*zb)); - } - if (bp->blk_birth == 0) { /* * Since this block has a birth time of 0 it must be one of