badpage: remove vma from page_remove_rmap
authorHugh Dickins <hugh@veritas.com>
Tue, 6 Jan 2009 22:40:11 +0000 (14:40 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 6 Jan 2009 23:59:07 +0000 (15:59 -0800)
commitedc315fd222497ae4f4b959a9e31ada1e68a4755
treeaaf1a6b015368c52097ed0c362a24bf18e40897f
parent2509ef26db4699a5d9fa876e90ddfc107afcab84
badpage: remove vma from page_remove_rmap

Remove page_remove_rmap()'s vma arg, which was only for the Eeek message.
And remove the BUG_ON(page_mapcount(page) == 0) from CONFIG_DEBUG_VM's
page_dup_rmap(): we're trying to be more resilient about that than BUGs.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/rmap.h
mm/filemap_xip.c
mm/fremap.c
mm/memory.c
mm/rmap.c