diff options
author | Michel Lespinasse <walken@google.com> | 2012-12-11 16:01:42 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-11 17:22:25 -0800 |
commit | 5a0768f641a5bad844860e67250baf0d1aa5e03c (patch) | |
tree | 3bb26ec05c4aede8ff37474dc27b5af49892c95e /include/linux/mm_types.h | |
parent | d37371870ceb1d2165397dc36114725b6dca946c (diff) | |
download | op-kernel-dev-5a0768f641a5bad844860e67250baf0d1aa5e03c.zip op-kernel-dev-5a0768f641a5bad844860e67250baf0d1aa5e03c.tar.gz |
mm: check rb_subtree_gap correctness
When CONFIG_DEBUG_VM_RB is enabled, check that rb_subtree_gap is correctly
set for every vma and that mm->highest_vm_end is also correct.
Also add an explicit 'bug' variable to track if browse_rb() detected any
invalid condition.
[akpm@linux-foundation.org: repair innovative coding-style inventions]
Signed-off-by: Michel Lespinasse <walken@google.com>
Reviewed-by: Rik van Riel <riel@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Chris Metcalf <cmetcalf@tilera.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/mm_types.h')
0 files changed, 0 insertions, 0 deletions