]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove a couple of lingering usages of the page lock.
authormarkj <markj@FreeBSD.org>
Sat, 1 Feb 2020 18:23:51 +0000 (18:23 +0000)
committermarkj <markj@FreeBSD.org>
Sat, 1 Feb 2020 18:23:51 +0000 (18:23 +0000)
commitaa00d7a1de8aa530f5bc3c861983405a2ed68347
treeaa58c543e3f5217e4f0b4993b9a6032863f6becf
parent9fcbf2727e474da67dcdf2183c3012c1cdd3e60e
Remove a couple of lingering usages of the page lock.

Update vm_page_scan_contig() and vm_page_reclaim_run() to stop using
vm_page_change_lock().  It has no use after r356157.  Remove
vm_page_change_lock() now that it has no users.

Remove an unncessary check for wirings in vm_page_scan_contig(), which
was previously checking twice.  The check is racy until
vm_page_reclaim_run() ensures that the page is unmapped, so one check is
sufficient.

Reviewed by: jeff, kib (previous versions)
Tested by: pho (previous version)
Differential Revision: https://reviews.freebsd.org/D23279
sys/vm/vm_page.c
sys/vm/vm_page.h