rmap: add anon_vma bug checks
authorAndrea Arcangeli <aarcange@redhat.com>
Tue, 10 Aug 2010 00:19:10 +0000 (17:19 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 10 Aug 2010 03:44:59 +0000 (20:44 -0700)
commit44ab57a06ded284db6ccdefc6b76eddb1c34d7ed
treee757c1af6be102b90d8a989d6fcfacad93ff6b69
parent21d0d443cdc1658a8c1484fdcece4803f0f96d0e
rmap: add anon_vma bug checks

Verify the refcounting doesn't go wrong, and resurrect the check in
__page_check_anon_rmap as in old anon-vma code.

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/rmap.c