]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Restore dirty dnode detection logic
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 11 Nov 2021 00:14:32 +0000 (16:14 -0800)
committerMark Johnston <markj@FreeBSD.org>
Sun, 20 Mar 2022 14:10:36 +0000 (10:10 -0400)
commitb8ae329db949868b8275091da0844ffbff50c65a
treee63dc24b39a7d71070136893b1e1ef280a58216e
parent210991b1f28bfebfff889252445e4fe41b714c7d
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
(cherry picked from commit d7e640cf95f72deeca501d34afed59a0bc9d7940)

Approved by: so
Security: FreeBSD-EN-22:13.zfs
sys/contrib/openzfs/module/zfs/dnode.c