mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
slob: sparsemem support
Currently slob is disabled if we're using sparsemem, due to an earlier patch from Goto-san. Slob and static sparsemem work without any trouble as it is, and the only hiccup is a missing slab_is_available() in the case of sparsemem extreme. With this, we're rid of the last set of restrictions for slob usage. Signed-off-by: Paul Mundt <[email protected]> Acked-by: Pekka Enberg <[email protected]> Acked-by: Matt Mackall <[email protected]> Cc: Christoph Lameter <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
5dc4ac6324
commit
84a01c2f8e
2 changed files with 9 additions and 1 deletions
|
|
@ -634,6 +634,14 @@ int kmem_ptr_validate(struct kmem_cache *a, const void *b)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static unsigned int slob_ready __read_mostly;
|
||||
|
||||
int slab_is_available(void)
|
||||
{
|
||||
return slob_ready;
|
||||
}
|
||||
|
||||
void __init kmem_cache_init(void)
|
||||
{
|
||||
slob_ready = 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue