]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Replace an unnecessary call to vm_page_activate() by an assertion that
authoralc <alc@FreeBSD.org>
Sun, 8 Oct 2017 16:54:42 +0000 (16:54 +0000)
committeralc <alc@FreeBSD.org>
Sun, 8 Oct 2017 16:54:42 +0000 (16:54 +0000)
commit1615de1f6825fa41a45154f70ee12e941ec8344a
tree8972e02e58ab7068257ec055159f4a8041fce15a
parent961760c58ba033b8be44a7877d1a15c50bbdf586
Replace an unnecessary call to vm_page_activate() by an assertion that
the page is already wired or queued.  Prior to the elimination of PG_CACHED
pages, vm_page_grab() might have returned a valid, previously PG_CACHED
page, in which case enqueueing the page was necessary.  Now, that can't
happen.  Moreover, activating the page is a dubious choice, since the page
is not being accessed.

Reviewed by: kib
MFC after: 1 week
sys/vm/swap_pager.c