mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
slab: make GFP_SLAB_BUG_MASK information more human readable
printk offers %pGg for quite some time so let's use it to get a human readable list of invalid flags. The original output would be [ 429.191962] gfp: 2 after the change [ 429.191962] Unexpected gfp: 0x2 (__GFP_HIGHMEM) Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Michal Hocko <[email protected]> Cc: Sergey Senozhatsky <[email protected]> Cc: Christoph Lameter <[email protected]> Cc: Pekka Enberg <[email protected]> Cc: David Rientjes <[email protected]> Cc: Joonsoo Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
210e7a43fa
commit
bacdcb3460
2 changed files with 4 additions and 2 deletions
|
|
@ -2686,7 +2686,8 @@ static struct page *cache_grow_begin(struct kmem_cache *cachep,
|
|||
* critical path in kmem_cache_alloc().
|
||||
*/
|
||||
if (unlikely(flags & GFP_SLAB_BUG_MASK)) {
|
||||
pr_emerg("gfp: %u\n", flags & GFP_SLAB_BUG_MASK);
|
||||
gfp_t invalid_mask = flags & GFP_SLAB_BUG_MASK;
|
||||
pr_emerg("Unexpected gfp: %#x (%pGg)\n", invalid_mask, &invalid_mask);
|
||||
BUG();
|
||||
}
|
||||
local_flags = flags & (GFP_CONSTRAINT_MASK|GFP_RECLAIM_MASK);
|
||||
|
|
|
|||
Loading…
Reference in a new issue