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
Reviewer
kib
Differential Revision
D21027: Simplify handling of superpages in pmap_clear_modify()
Parents
rS350334: MFC r350117:
Branches
Unknown
Tags
Unknown