summaryrefslogtreecommitdiffstats
path: root/mm/page-writeback.c
diff options
context:
space:
mode:
authorNick Piggin2006-09-26 08:30:55 +0200
committerLinus Torvalds2006-09-26 17:48:44 +0200
commit725d704ecaca4a43f067092c140d4f3271cf2856 (patch)
tree320cf8ab5457ac6c01c05da8c30d6026538ee259 /mm/page-writeback.c
parent[PATCH] update to the kernel kmap/kunmap API (diff)
downloadkernel-qcow2-linux-725d704ecaca4a43f067092c140d4f3271cf2856.tar.gz
kernel-qcow2-linux-725d704ecaca4a43f067092c140d4f3271cf2856.tar.xz
kernel-qcow2-linux-725d704ecaca4a43f067092c140d4f3271cf2856.zip
[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>
Diffstat (limited to 'mm/page-writeback.c')
0 files changed, 0 insertions, 0 deletions