slab: improve checking for invalid gfp_flags
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 10 Dec 2014 23:42:25 +0000 (15:42 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Dec 2014 01:41:04 +0000 (17:41 -0800)
commitc871ac4e9666ad68ae861172ef8a7f73d6e61b26
tree4ca2000cf5e0c663f1b70efadf38127fa7b59b7c
parentf6edde9cbe0634e4391b6e421a609ca3f57f6c38
slab: improve checking for invalid gfp_flags

The code goes BUG, but doesn't tell us which bits were unexpectedly set.
Print that out.

Cc: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slab.c
mm/slub.c