diff options
author | alc <alc@FreeBSD.org> | 2009-06-18 07:27:11 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2009-06-18 07:27:11 +0000 |
commit | d26e62824ba1dacb423d702f28ba8e277620b037 (patch) | |
tree | 2470331e7922d7040d7d6cde2781b64bf57fe895 /sys/vm | |
parent | f0cb2be073e4d534642c7b5774af9533ee321fbc (diff) | |
download | FreeBSD-src-d26e62824ba1dacb423d702f28ba8e277620b037.zip FreeBSD-src-d26e62824ba1dacb423d702f28ba8e277620b037.tar.gz |
Add support for UMA_SLAB_KERNEL to page_free(). (While I'm here remove an
unnecessary newline character from the end of two panic messages.)
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/uma_core.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c index 9841a64..8125482 100644 --- a/sys/vm/uma_core.c +++ b/sys/vm/uma_core.c @@ -1061,8 +1061,10 @@ page_free(void *mem, int size, u_int8_t flags) if (flags & UMA_SLAB_KMEM) map = kmem_map; + else if (flags & UMA_SLAB_KERNEL) + map = kernel_map; else - panic("UMA: page_free used with invalid flags %d\n", flags); + panic("UMA: page_free used with invalid flags %d", flags); kmem_free(map, (vm_offset_t)mem, size); } @@ -1352,7 +1354,7 @@ keg_ctor(void *mem, int size, void *udata, int flags) printf("zone %s ipers %d rsize %d size %d\n", zone->uz_name, keg->uk_ipers, keg->uk_rsize, keg->uk_size); - panic("UMA slab won't fit.\n"); + panic("UMA slab won't fit."); } } |