aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memory.c
diff options
context:
space:
mode:
authorHugh Dickins <hugh@veritas.com>2009-01-06 17:40:11 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-06 18:59:07 -0500
commitedc315fd222497ae4f4b959a9e31ada1e68a4755 (patch)
treeaaf1a6b015368c52097ed0c362a24bf18e40897f /mm/memory.c
parent2509ef26db4699a5d9fa876e90ddfc107afcab84 (diff)
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>
Diffstat (limited to 'mm/memory.c')
-rw-r--r--mm/memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/memory.c b/mm/memory.c
index b273cc12b15d..0f9abbaf618c 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -798,7 +798,7 @@ static unsigned long zap_pte_range(struct mmu_gather *tlb,
798 mark_page_accessed(page); 798 mark_page_accessed(page);
799 file_rss--; 799 file_rss--;
800 } 800 }
801 page_remove_rmap(page, vma); 801 page_remove_rmap(page);
802 if (unlikely(page_mapcount(page) < 0)) 802 if (unlikely(page_mapcount(page) < 0))
803 print_bad_pte(vma, addr, ptent, page); 803 print_bad_pte(vma, addr, ptent, page);
804 tlb_remove_page(tlb, page); 804 tlb_remove_page(tlb, page);
@@ -2023,7 +2023,7 @@ gotten:
2023 * mapcount is visible. So transitively, TLBs to 2023 * mapcount is visible. So transitively, TLBs to
2024 * old page will be flushed before it can be reused. 2024 * old page will be flushed before it can be reused.
2025 */ 2025 */
2026 page_remove_rmap(old_page, vma); 2026 page_remove_rmap(old_page);
2027 } 2027 }
2028 2028
2029 /* Free the old page.. */ 2029 /* Free the old page.. */