• Michel Lespinasse's avatar
    mm: add CONFIG_DEBUG_VM_RB build option · ed8ea815
    Michel Lespinasse authored
    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: default avatarMichel 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: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    ed8ea815
interval_tree.c 3.24 KB