1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

Now that access to the page's "act_count" field is synchronized by the page

lock instead of the object lock, there is no reason for vm_page_activate()
to assert that the object is locked for either read or write access.
(The "VPO_UNMANAGED" flag never changes after page allocation.)

Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
Alan Cox 2013-06-01 20:32:34 +00:00
parent b7875bd695
commit b4e498071d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=251229

View File

@ -1837,7 +1837,6 @@ vm_page_activate(vm_page_t m)
int queue;
vm_page_lock_assert(m, MA_OWNED);
VM_OBJECT_ASSERT_WLOCKED(m->object);
if ((queue = m->queue) != PQ_ACTIVE) {
if (m->wire_count == 0 && (m->oflags & VPO_UNMANAGED) == 0) {
if (m->act_count < ACT_INIT)