diff options
author | Alan Cox <alc@FreeBSD.org> | 2009-06-17 17:19:48 +0000 |
---|---|---|
committer | Alan Cox <alc@FreeBSD.org> | 2009-06-17 17:19:48 +0000 |
commit | d78200e4e85e4c1c6f763c62647fdaf859bc45f2 (patch) | |
tree | 645f687c5c92adb1dfc423f6cca74d4c9292981f /sys/vm/vm_unix.c | |
parent | 30a2bd2f78b7eec1f7efdaffb3eaf0a00f8e1e29 (diff) | |
download | src-d78200e4e85e4c1c6f763c62647fdaf859bc45f2.tar.gz src-d78200e4e85e4c1c6f763c62647fdaf859bc45f2.zip |
Refactor contigmalloc() into two functions: a simple front-end that deals
with the malloc tag and calls a new back-end, kmem_alloc_contig(), that
allocates the pages and maps them.
The motivations for this change are two-fold: (1) A cache mode parameter
will be added to kmem_alloc_contig(). In other words, kmem_alloc_contig()
will be extended to support the allocation of memory with caller-specified
caching. (2) The UMA allocation function that is used by the two jumbo
frames zones can use kmem_alloc_contig() in place of contigmalloc() and
thereby avoid having free jumbo frames held by the zone counted as live
malloc()ed memory.
Notes
Notes:
svn path=/head/; revision=194376
Diffstat (limited to 'sys/vm/vm_unix.c')
0 files changed, 0 insertions, 0 deletions