diff --git a/[refs] b/[refs] index 657dcc85b75f..b6eab4a642d9 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: be6aab0e9fa6d3c6d75aa1e38ac972d8b4ee82b8 +refs/heads/master: b6a60451813bad6a9f57cb159004c3b3e12a1cd3 diff --git a/trunk/mm/slab.c b/trunk/mm/slab.c index 0d4e57431de4..c6100628a6ef 100644 --- a/trunk/mm/slab.c +++ b/trunk/mm/slab.c @@ -3281,7 +3281,7 @@ void *fallback_alloc(struct kmem_cache *cache, gfp_t flags) flags | GFP_THISNODE, nid); } - if (!obj) { + if (!obj && !(flags & __GFP_NO_GROW)) { /* * This allocation will be performed within the constraints * of the current cpuset / memory policy requirements. @@ -3310,7 +3310,7 @@ void *fallback_alloc(struct kmem_cache *cache, gfp_t flags) */ goto retry; } else { - kmem_freepages(cache, obj); + /* cache_grow already freed obj */ obj = NULL; } }