aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/vm_mmap.c
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2009-06-17 17:19:48 +0000
committerAlan Cox <alc@FreeBSD.org>2009-06-17 17:19:48 +0000
commitd78200e4e85e4c1c6f763c62647fdaf859bc45f2 (patch)
tree645f687c5c92adb1dfc423f6cca74d4c9292981f /sys/vm/vm_mmap.c
parent30a2bd2f78b7eec1f7efdaffb3eaf0a00f8e1e29 (diff)
downloadsrc-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_mmap.c')
0 files changed, 0 insertions, 0 deletions