Age | Commit message (Collapse) | Author |
|
extent.
|
|
|
|
- extent_alloc_subregion shouldn't allocate a region pasts the end of subregion.
- extent_alloc_subregion1(): when a candidate region doesn't fit after being
rounded up to respect boundary limits, adjust newstart and last before
skiping to the next region. Otherwise we may check the same candidate
region against the start of the next region, no the one immediatly following
the hole, leading to corrupted map.
|
|
|
|
well (not at all) with shortages of the vm_map where the pages are mapped
(usually kmem_map).
Try to deal with it:
- group all information the backend allocator for a pool in a separate
struct. The pool will only have a pointer to that struct.
- change the pool_init API to reflect that.
- link all pools allocating from the same allocator on a linked list.
- Since an allocator is responsible to wait for physical memory it will
only fail (waitok) when it runs out of its backing vm_map, carefully
drain pools using the same allocator so that va space is freed.
(see comments in code for caveats and details).
- change pool_reclaim to return if it actually succeeded to free some
memory, use that information to make draining easier and more efficient.
- get rid of PR_URGENT, noone uses it.
|
|
|
|
all extents.
|
|
Pass the right amount of arguments and rename them back to their right names.
|
|
|
|
|
|
past the end of the subregion; art@ok, deraadt@ok.
|
|
|
|
several fixes with regards to boundary cases and other fixes
|
|
|
|
|
|
to the alignment. rename the function to extent_alloc_subregion1 and add
compatibility macros.
From NetBSD.
|
|
bounds of "substart" and "subend".
|
|
|
|
was ignored. This fix some problems in the pcmcia framework.
|
|
and "it's just plain cool".
|
|
say PnP? Anyways, this stuff just adds the ability to register
the extents on creation, etc, etc...
Someone needs to add a DDB command "show extent", to make this
really usefull... ;-)
|
|
|
|
|