]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] mm: VM_BUG_ON
authorNick Piggin <npiggin@suse.de>
Tue, 26 Sep 2006 06:30:55 +0000 (23:30 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 26 Sep 2006 15:48:44 +0000 (08:48 -0700)
commit725d704ecaca4a43f067092c140d4f3271cf2856
tree320cf8ab5457ac6c01c05da8c30d6026538ee259
parenta6ca1b99ed434f3fb41bbed647ed36c0420501e5
[PATCH] mm: VM_BUG_ON

Introduce a VM_BUG_ON, which is turned on with CONFIG_DEBUG_VM.  Use this
in the lightweight, inline refcounting functions; PageLRU and PageActive
checks in vmscan, because they're pretty well confined to vmscan.  And in
page allocate/free fastpaths which can be the hottest parts of the kernel
for kbuilds.

Unlike BUG_ON, VM_BUG_ON must not be used to execute statements with
side-effects, and should not be used outside core mm code.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Cc: Hugh Dickins <hugh@veritas.com>
Cc: Christoph Lameter <clameter@engr.sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/mm.h
mm/internal.h
mm/page_alloc.c
mm/swap.c
mm/vmscan.c