SLUB: Don't print out OOM warning for __GFP_NOFAIL
authorPekka Enberg <penberg@cs.helsinki.fi>
Thu, 11 Jun 2009 13:18:09 +0000 (16:18 +0300)
committerPekka Enberg <penberg@cs.helsinki.fi>
Sat, 13 Jun 2009 20:37:38 +0000 (23:37 +0300)
commit95f8598931bd86a5775073db2fa2004b892dd3d0
treec315a6fb15b626c31c139519e099fec43a1bec2b
parent26c02cf05ddadfee3952e829b841583794bf46f6
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: Pekka Enberg <penberg@cs.helsinki.fi>
mm/slub.c