mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-10-04 08:02:24 +00:00
Merge branch 'slab/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6
* 'slab/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6: slub: Fix partial count comparison confusion
This commit is contained in:
commit
47e180d652
@ -1854,7 +1854,7 @@ static void deactivate_slab(struct kmem_cache *s, struct kmem_cache_cpu *c)
|
|||||||
|
|
||||||
new.frozen = 0;
|
new.frozen = 0;
|
||||||
|
|
||||||
if (!new.inuse && n->nr_partial < s->min_partial)
|
if (!new.inuse && n->nr_partial > s->min_partial)
|
||||||
m = M_FREE;
|
m = M_FREE;
|
||||||
else if (new.freelist) {
|
else if (new.freelist) {
|
||||||
m = M_PARTIAL;
|
m = M_PARTIAL;
|
||||||
|
Loading…
Reference in New Issue
Block a user