Skip to content

Commit

Permalink
fix prefetching - no zero
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrens committed Mar 11, 2023
1 parent 9b23dd5 commit 8e2b28c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions module/zfs/dmu_traverse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8e2b28c

Please sign in to comment.