HomeFreeBSD

With the introduction of software dirty bit emulation for managed mappings,

Description

With the introduction of software dirty bit emulation for managed mappings,
we should test ATTR_SW_DBM, not ATTR_AP_RW, to determine whether to set
PGA_WRITEABLE. In effect, we are currently setting PGA_WRITEABLE based on
whether the dirty bit is preset, not whether the mapping is writeable.
Correct this mistake.

Reviewed by: markj
X-MFC with: r350004
Differential Revision: https://reviews.freebsd.org/D21013

Details

Provenance
alcAuthored on
Reviewer
markj
Differential Revision
D21013: Correct two errors in managing PGA_WRITEABLE
Parents
rS350201: Link fileargs_lstat.3.
Branches
Unknown
Tags
Unknown