HomeFreeBSD

Simplify the handling of superpages in pmap_clear_modify(). Specifically,

Description

Simplify the handling of superpages in pmap_clear_modify(). Specifically,
if a demotion succeeds, then all of the 4KB page mappings within the
superpage-sized region must be valid, so there is no point in testing the
validity of the 4KB page mapping that is going to be write protected.

Deindent the nearby code.

Reviewed by: kib, markj
Tested by: pho (amd64, i386)
X-MFC after: r350004 (this change depends on arm64 dirty bit emulation)
Differential Revision: https://reviews.freebsd.org/D21027

Details

Provenance
alcAuthored on Jul 25 2019, 10:02 PM
Parents
rG08a607e0f357: Widen the type for to.
Branches
Unknown
Tags
Unknown