]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: add CONFIG_DEBUG_VM_RB build option
authorMichel Lespinasse <walken@google.com>
Fri, 21 Sep 2012 00:57:43 +0000 (10:57 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 25 Sep 2012 08:46:16 +0000 (18:46 +1000)
commit8435c8eae6c3b19e2d7ddad3374b01a5cab9faf2
tree7c51440fb413de62978b25b2c0ee5efb53137e05
parent789217a631188dea5852b6dc8940691f4f1d9b55
mm: add CONFIG_DEBUG_VM_RB build option

Add a CONFIG_DEBUG_VM_RB build option for the previously existing
DEBUG_MM_RB code.  Now that Andi Kleen modified it to avoid using
recursive algorithms, we can expose it a bit more.

Also extend this code to validate_mm() after stack expansion, and to check
that the vma's start and last pgoffs have not changed since the nodes were
inserted on the anon vma interval tree (as it is important that the nodes
be reindexed after each such update).

Signed-off-by: Michel Lespinasse <walken@google.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Daniel Santos <daniel.santos@pobox.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mm.h
include/linux/rmap.h
lib/Kconfig.debug
mm/interval_tree.c
mm/mmap.c