Replace an XXX comment with the appropriate code.

Submitted by:	alc
This commit is contained in:
Matthew D Fleming 2010-09-20 20:41:59 +00:00
parent f7482a2568
commit d69b01efc2

View File

@ -354,11 +354,7 @@ kmem_back(vm_map_t map, vm_offset_t addr, vm_size_t size, int flags)
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,