]> git.baikalelectronics.ru Git - kernel.git/commit
mm: add CONFIG_DEBUG_VM_RB build option
authorMichel Lespinasse <walken@google.com>
Mon, 8 Oct 2012 23:31:45 +0000 (16:31 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 Oct 2012 07:22:42 +0000 (16:22 +0900)
commit433f0b35fae2fd108661b0efa139697cb91a2c03
tree3af48f3a947df4dc5a0df660988f61d454a88cf2
parenta86da0ddcfb978eab2e2b2cae251b2fa81c06e1c
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/mm.h
include/linux/rmap.h
lib/Kconfig.debug
mm/interval_tree.c
mm/mmap.c