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
Tony Hutter <hutter2@llnl.gov>Committed on Nov 5 2021, 4:45 PM
Parents
rG664d487a5dbd: Fix lseek(SEEK_DATA/SEEK_HOLE) mmap consistency
Branches
Unknown
Tags
Unknown