HomeFreeBSD

unnecessary alloc/free in dsl_scan_visitbp()

Description

unnecessary alloc/free in dsl_scan_visitbp()

Clean up code in dsl_scan_visitbp() by removing an unnecessary
alloc/free and goto. This has the side benefit of reducing CPU usage,
which is only really noticeable if we are not doing i/o for the leaf
blocks, like when zfs_no_scrub_io is set.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Mark Maybee <mark.maybee@delphix.com>
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Signed-off-by: Matthew Ahrens <mahrens@delphix.com>
Closes #15549

Details

Provenance
mahrensAuthored on Nov 28 2023, 5:20 PM
GitHub <noreply@github.com>Committed on Nov 28 2023, 5:20 PM
Parents
rG30d581121bb1: dnode_is_dirty: check dnode and its data for dirtiness
Branches
Unknown
Tags
Unknown