HomeFreeBSD

Enable vm_object_mightbedirty() and vm_object_page_clean() for swap

Description

Enable vm_object_mightbedirty() and vm_object_page_clean() for swap
objects backing tmpfs vnodes data.

The clean scan is limited to only remove write permissions from the
mapped pages of the objects. This fixes the issue that tmpfs vnode
mtime is not updated from writes to the mmaped area after the initial
page-in.

Noted by: mjg
Reviewed by: markj
Discussed with: jeff
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D23432

Details

Provenance
kibAuthored on Feb 4 2020, 7:03 PM
Parents
rGa421e8786be1: Add sys/systm.h to several places that use vm headers.
Branches
Unknown
Tags
Unknown

Event Timeline