HomeFreeBSD

Restore dirty dnode detection logic

Description

Restore dirty dnode detection logic

In addition to flushing memory mapped regions when checking holes,
commit de198f2d95 modified the dirty dnode detection logic to check
the dn->dn_dirty_records instead of the dn->dn_dirty_link. Relying
on the dirty record has not be reliable, switch back to the previous
method.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #11900
Closes #12745

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Nov 11 2021, 12:14 AM
GitHub <noreply@github.com>Committed on Nov 11 2021, 12:14 AM
Parents
rG371e0f775474: Exclude zfs_copies_003_pos on Linux
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGc23803be84cb: Restore dirty dnode detection logic (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Nov 11 2021, 12:14 AM