diff options
author | Richard Braun <rbraun@sceen.net> | 2016-02-22 21:59:07 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2016-02-22 21:59:07 +0100 |
commit | b325f426b367d813b23799aeb058d7d3ac81f13d (patch) | |
tree | a17f7d46316faadd79958de3760c4ee744014e88 /device | |
parent | 9e7f22971be0f427601926b42b640426ab7da4db (diff) |
Optimize slab lookup on the free path
Caches that use external slab data but allocate slabs from the direct
physical mapping can look up slab data in constant time by associating
the slab data directly with the underlying page.
* kern/slab.c (kmem_slab_use_tree): Take KMEM_CF_DIRECTMAP into account.
(kmem_slab_create): Set page private data if relevant.
(kmem_slab_destroy): Clear page private data if relevant.
(kmem_cache_free_to_slab): Use page private data if relevant.
* vm/vm_page.c (vm_page_init_pa): Set `priv' member to NULL.
* vm/vm_page.h (vm_page_set_priv, vm_page_get_priv): New functions.
Diffstat (limited to 'device')
0 files changed, 0 insertions, 0 deletions