svn commit: r212931 - head/sys/vm
Matthew D Fleming
mdf at FreeBSD.org
Mon Sep 20 20:41:59 UTC 2010
Author: mdf
Date: Mon Sep 20 20:41:59 2010
New Revision: 212931
URL: http://svn.freebsd.org/changeset/base/212931
Log:
Replace an XXX comment with the appropriate code.
Submitted by: alc
Modified:
head/sys/vm/vm_kern.c
Modified: head/sys/vm/vm_kern.c
==============================================================================
--- head/sys/vm/vm_kern.c Mon Sep 20 19:59:08 2010 (r212930)
+++ head/sys/vm/vm_kern.c Mon Sep 20 20:41:59 2010 (r212931)
@@ -354,11 +354,7 @@ kmem_back(vm_map_t map, vm_offset_t addr
vm_page_t m;
int pflags;
- /*
- * XXX the map must be locked for write on entry, but there's
- * no easy way to assert that.
- */
-
+ KASSERT(vm_map_locked(map), ("kmem_back: map %p is not locked", map));
offset = addr - VM_MIN_KERNEL_ADDRESS;
vm_object_reference(kmem_object);
vm_map_insert(map, kmem_object, offset, addr, addr + size,
More information about the svn-src-head
mailing list