Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95f85989 authored by Pekka Enberg's avatar Pekka Enberg
Browse files

SLUB: Don't print out OOM warning for __GFP_NOFAIL



We must check for __GFP_NOFAIL like the page allocator does; otherwise we end
up with false positives. While at it, add the printk_ratelimit() check in SLUB
as well.

Cc: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
parent 26c02cf0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1631,6 +1631,7 @@ static void *__slab_alloc(struct kmem_cache *s, gfp_t gfpflags, int node,
		c->page = new;
		goto load_freelist;
	}
	if (!(gfpflags & __GFP_NOWARN) && printk_ratelimit())
		slab_out_of_memory(s, gfpflags, node);
	return NULL;
debug: