]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Enable vm_object_mightbedirty() and vm_object_page_clean() for swap
authorKonstantin Belousov <kib@FreeBSD.org>
Tue, 4 Feb 2020 19:03:37 +0000 (19:03 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Tue, 4 Feb 2020 19:03:37 +0000 (19:03 +0000)
commit8d34a3bf7d64f61bc6d1519cf75c76e976572469
treebc1e3010cf5e01ff0cdfd2d99cd1d3b592f83152
parenta421e8786be1b09645f287fe8a9d6d840fae4abb
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
sys/vm/vm_object.c
sys/vm/vm_object.h