diff options
author | alc <alc@FreeBSD.org> | 2002-07-20 20:12:57 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2002-07-20 20:12:57 +0000 |
commit | 4de6bb3a4daba912d5ac55ac077dfd83183ec6b3 (patch) | |
tree | 512aa304019d62932c704cbf53edb8a6059aacda /sys/vm/vm_page.c | |
parent | a01b1feba6a536597245b8bd8d380609d0150b85 (diff) | |
download | FreeBSD-src-4de6bb3a4daba912d5ac55ac077dfd83183ec6b3.zip FreeBSD-src-4de6bb3a4daba912d5ac55ac077dfd83183ec6b3.tar.gz |
o Assert that the page queues lock is held in vm_page_try_to_free().
Diffstat (limited to 'sys/vm/vm_page.c')
-rw-r--r-- | sys/vm/vm_page.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 831f8c8..3a80951 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -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); |