On Wed, 28 Jan 2015, Vladimir Davydov wrote: > @@ -3419,6 +3420,9 @@ int __kmem_cache_shrink(struct kmem_cache *s) > for (i = SHRINK_PROMOTE_MAX - 1; i >= 0; i--) > list_splice_init(promote + i, &n->partial); > > + if (n->nr_partial || slabs_node(s, node)) The total number of slabs obtained via slabs_node always contains the number of partial ones. So no need to check n->nr_partial. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>