1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-28 16:43:09 +00:00

o Assert that the page queues lock is held in vm_page_try_to_free().

This commit is contained in:
Alan Cox 2002-07-20 20:12:57 +00:00
parent 15a5d2108e
commit d82efd2956
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100414

View File

@ -1387,6 +1387,8 @@ vm_page_try_to_cache(vm_page_t m)
int
vm_page_try_to_free(vm_page_t m)
{
mtx_assert(&vm_page_queue_mtx, MA_OWNED);
if (m->dirty || m->hold_count || m->busy || m->wire_count ||
(m->flags & (PG_BUSY|PG_UNMANAGED))) {
return (0);