mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
slub: Discard slab page when node partial > minimum partial number
Discarding slab should be done when node partial > min_partial. Otherwise, node partial slab may eat up all memory. Signed-off-by: Alex Shi <[email protected]> Acked-by: Christoph Lameter <[email protected]> Signed-off-by: Pekka Enberg <[email protected]>
This commit is contained in:
parent
9f26490412
commit
dcc3be6a54
1 changed files with 1 additions and 1 deletions
|
|
@ -1953,7 +1953,7 @@ static void unfreeze_partials(struct kmem_cache *s)
|
|||
|
||||
new.frozen = 0;
|
||||
|
||||
if (!new.inuse && (!n || n->nr_partial < s->min_partial))
|
||||
if (!new.inuse && (!n || n->nr_partial > s->min_partial))
|
||||
m = M_FREE;
|
||||
else {
|
||||
struct kmem_cache_node *n2 = get_node(s,
|
||||
|
|
|
|||
Loading…
Reference in a new issue