aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/gfp.h
diff options
context:
space:
mode:
authorDave Hansen <dave@linux.vnet.ibm.com>2011-05-24 20:11:42 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-05-25 11:39:11 -0400
commit82d4b5779a75887750748609f3415f01c1bb9f81 (patch)
tree44e467cea2a2fbf88325b6a562c2efa39f53b9d2 /include/linux/gfp.h
parent15fa8f425557a0d698f933627771f520ef4ae34b (diff)
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: Dave Hansen <dave@linux.vnet.ibm.com> Cc: Christoph Lameter <cl@linux.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/gfp.h')
-rw-r--r--include/linux/gfp.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/gfp.h b/include/linux/gfp.h
index 7e8f5d863c76..cb4089254f01 100644
--- a/include/linux/gfp.h
+++ b/include/linux/gfp.h
@@ -249,9 +249,7 @@ static inline enum zone_type gfp_zone(gfp_t flags)
249 249
250 z = (GFP_ZONE_TABLE >> (bit * ZONES_SHIFT)) & 250 z = (GFP_ZONE_TABLE >> (bit * ZONES_SHIFT)) &
251 ((1 << ZONES_SHIFT) - 1); 251 ((1 << ZONES_SHIFT) - 1);
252#ifdef CONFIG_DEBUG_VM 252 VM_BUG_ON((GFP_ZONE_BAD >> bit) & 1);
253 BUG_ON((GFP_ZONE_BAD >> bit) & 1);
254#endif
255 return z; 253 return z;
256} 254}
257 255