mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-21 09:13:37 +00:00
Simplify contigfree().
This commit is contained in:
parent
8a4444049e
commit
42d9e2c4a6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=193521
|
@ -281,9 +281,7 @@ contigmalloc(
|
|||
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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue