]> granicus.if.org Git - zfs/commit
Report holes when there are only metadata changes
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 21 Mar 2019 17:30:15 +0000 (10:30 -0700)
committerGitHub <noreply@github.com>
Thu, 21 Mar 2019 17:30:15 +0000 (10:30 -0700)
commitec4f9b8f30391a3fb46c8d4a31c2dc9250dca1bb
treee6c8855caece7b52d8deefa23d5a82dbdf760b7b
parent066da71e7fe32f569736b53454b034937d0d3813
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
module/zfs/dmu.c