diff options
author | alc <alc@FreeBSD.org> | 2009-06-05 16:55:10 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2009-06-05 16:55:10 +0000 |
commit | d419d0f3dc3629bb6eccdb0609eb466a8b9c730d (patch) | |
tree | 6ff715f0c7978e941e38ecfad7b9729a33b1c5e6 /sys/vm | |
parent | 3a1cf7a4502e6f37113536ad38530f5207c77866 (diff) | |
download | FreeBSD-src-d419d0f3dc3629bb6eccdb0609eb466a8b9c730d.zip FreeBSD-src-d419d0f3dc3629bb6eccdb0609eb466a8b9c730d.tar.gz |
Simplify contigfree().
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_contig.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/vm/vm_contig.c b/sys/vm/vm_contig.c index 8fec101..6c82e14 100644 --- a/sys/vm/vm_contig.c +++ b/sys/vm/vm_contig.c @@ -281,9 +281,7 @@ again: void contigfree(void *addr, unsigned long size, struct malloc_type *type) { - vm_pindex_t npgs; - npgs = round_page(size) >> PAGE_SHIFT; kmem_free(kernel_map, (vm_offset_t)addr, size); - malloc_type_freed(type, npgs << PAGE_SHIFT); + malloc_type_freed(type, round_page(size)); } |