diff --git a/mm/slub.c b/mm/slub.c index fe4db9c172384d7057ddea8710c8121c656888ba..fe376fe1f4fe3ce5526997ef700da9eee5c714a5 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -1670,8 +1670,7 @@ static void *get_any_partial(struct kmem_cache *s, gfp_t flags, n = get_node(s, zone_to_nid(zone)); - if (n && cpuset_zone_allowed(zone, - flags | __GFP_HARDWALL) && + if (n && cpuset_zone_allowed(zone, flags) && n->nr_partial > s->min_partial) { object = get_partial_node(s, n, c, flags); if (object) {