mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
slub: When allocating a new slab also prep the first object
We need to branch to the debug code for the first object if we allocate a new slab otherwise the first object will be marked wrongly as inactive. Tested-by: Rabin Vincent <[email protected]> Signed-off-by: Christoph Lameter <[email protected]> Signed-off-by: Pekka Enberg <[email protected]>
This commit is contained in:
parent
1d07171c5e
commit
9e577e8b46
1 changed files with 3 additions and 0 deletions
|
|
@ -2082,6 +2082,9 @@ new_slab:
|
|||
stat(s, ALLOC_SLAB);
|
||||
c->node = page_to_nid(page);
|
||||
c->page = page;
|
||||
|
||||
if (kmem_cache_debug(s))
|
||||
goto debug;
|
||||
goto load_freelist;
|
||||
}
|
||||
if (!(gfpflags & __GFP_NOWARN) && printk_ratelimit())
|
||||
|
|
|
|||
Loading…
Reference in a new issue