mm/sl[aou]b: Move kmallocXXX functions to common code
The kmalloc* functions of all slab allcoators are similar now so lets move them into slab.h. This requires some function naming changes in slob. As a results of this patch there is a common set of functions for all allocators. Also means that kmalloc_large() is now available in general to perform large order allocations that go directly via the page allocator. kmalloc_large() can be substituted if kmalloc() throws warnings because of too large allocations. kmalloc_large() has exactly the same semantics as kmalloc but can only used for allocations > PAGE_SIZE. Signed-off-by:Christoph Lameter <cl@linux.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
Showing
- include/linux/slab.h 124 additions, 32 deletionsinclude/linux/slab.h
- include/linux/slab_def.h 0 additions, 106 deletionsinclude/linux/slab_def.h
- include/linux/slob_def.h 0 additions, 31 deletionsinclude/linux/slob_def.h
- include/linux/slub_def.h 0 additions, 97 deletionsinclude/linux/slub_def.h
- mm/slab_common.c 10 additions, 0 deletionsmm/slab_common.c
- mm/slob.c 24 additions, 4 deletionsmm/slob.c
- mm/slub.c 0 additions, 8 deletionsmm/slub.c
Loading
Please register or sign in to comment