From 2370c6d40c4deb505cbbc8d6b760f1201c928d73 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Thu, 28 Aug 2003 23:23:04 +0000 Subject: [PATCH] Recent pmap changes permit the use of a more precise locking assertion in vm_page_lookup(). --- sys/vm/vm_page.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 89d6febebb72..9c53f0eda950 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -655,8 +655,7 @@ vm_page_lookup(vm_object_t object, vm_pindex_t pindex) { vm_page_t m; - if (!VM_OBJECT_LOCKED(object)) - GIANT_REQUIRED; + VM_OBJECT_LOCK_ASSERT(object, MA_OWNED); m = vm_page_splay(pindex, object->root); if ((object->root = m) != NULL && m->pindex != pindex) m = NULL;