]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a vm_page_change_lock() helper, the common code to not relock page
authorKonstantin Belousov <kib@FreeBSD.org>
Sat, 9 Sep 2017 17:35:19 +0000 (17:35 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Sat, 9 Sep 2017 17:35:19 +0000 (17:35 +0000)
commit93c5d3a46a60564df22a2f5bf35a07860feb4f43
treedf167a48cd9daabe80551cbb2f7e34c82b54a5de
parente6d697124fb39f6398002c06ce8d797ebc971c9c
Add a vm_page_change_lock() helper, the common code to not relock page
lock if both old and new pages use the same underlying lock.  Convert
existing places to use the helper instead of inlining it.  Use the
optimization in vm_object_page_remove().

Suggested and reviewed by: alc, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
sys/vm/vm_object.c
sys/vm/vm_page.c
sys/vm/vm_page.h