diff options
author | alc <alc@FreeBSD.org> | 2003-08-28 23:23:04 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2003-08-28 23:23:04 +0000 |
commit | de18724542a66185b28e7e95cd7ca7c84fe43df2 (patch) | |
tree | 86cca3b8b3d216ecf55fd2f51c6867347264fd4e /sys | |
parent | bc8072861ff47069109ea6db495796fec0acb745 (diff) | |
download | FreeBSD-src-de18724542a66185b28e7e95cd7ca7c84fe43df2.zip FreeBSD-src-de18724542a66185b28e7e95cd7ca7c84fe43df2.tar.gz |
Recent pmap changes permit the use of a more precise locking assertion
in vm_page_lookup().
Diffstat (limited to 'sys')
-rw-r--r-- | sys/vm/vm_page.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 89d6feb..9c53f0e 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; |