HomeFreeBSD

Report holes when there are only metadata changes

Description

Report holes when there are only metadata changes

Update the dirty check in dmu_offset_next() such that dnode's
are only considered dirty for the purpose or reporting holes
when there are pending data blocks or frees to be synced. This
ensures that when there are only metadata updates to be synced
(atime) that holes are reported.

Reviewed-by: Debabrata Banerjee <dbanerje@akamai.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #6958
Closes #8505

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Mar 21 2019, 5:30 PM
GitHub <noreply@github.com>Committed on Mar 21 2019, 5:30 PM
Parents
rG066da71e7fe3: Improve `zpool labelclear`
Branches
Unknown
Tags
Unknown
Reverted By
rG2531ce372015: Revert "Report holes when there are only metadata changes"