Commit 82d4b577 authored by Dave Hansen's avatar Dave Hansen Committed by Linus Torvalds

include/linux/gfp.h: convert BUG_ON() into VM_BUG_ON()

VM_BUG_ON() if effectively a BUG_ON() undef #ifdef CONFIG_DEBUG_VM.  That
is exactly what we have here now, and two different folks have suggested
doing it this way.
Signed-off-by: default avatarDave Hansen <dave@linux.vnet.ibm.com>
Cc: Christoph Lameter <cl@linux.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 15fa8f42
...@@ -249,9 +249,7 @@ static inline enum zone_type gfp_zone(gfp_t flags) ...@@ -249,9 +249,7 @@ static inline enum zone_type gfp_zone(gfp_t flags)
z = (GFP_ZONE_TABLE >> (bit * ZONES_SHIFT)) & z = (GFP_ZONE_TABLE >> (bit * ZONES_SHIFT)) &
((1 << ZONES_SHIFT) - 1); ((1 << ZONES_SHIFT) - 1);
#ifdef CONFIG_DEBUG_VM VM_BUG_ON((GFP_ZONE_BAD >> bit) & 1);
BUG_ON((GFP_ZONE_BAD >> bit) & 1);
#endif
return z; return z;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment