From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Date: Wed, 12 Jul 2006 16:37:11 +0200 Message-Id: <20060712143711.16998.38962.sendpatchset@lappy> In-Reply-To: <20060712143659.16998.6444.sendpatchset@lappy> References: <20060712143659.16998.6444.sendpatchset@lappy> Subject: [PATCH 1/39] mm: disuse activate_page() Sender: owner-linux-mm@kvack.org Return-Path: To: linux-mm@kvack.org Cc: Peter Zijlstra List-ID: From: Marcelo Tosatti Get rid of activate_page() callers. Instead, page activation is achieved through mark_page_accessed() interface. Signed-off-by: Marcelo Tosatti Signed-off-by: Peter Zijlstra include/linux/swap.h | 1 - mm/swapfile.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) Index: linux-2.6/include/linux/swap.h =================================================================== --- linux-2.6.orig/include/linux/swap.h 2006-07-12 16:07:30.000000000 +0200 +++ linux-2.6/include/linux/swap.h 2006-07-12 16:11:58.000000000 +0200 @@ -165,7 +165,6 @@ extern unsigned int nr_free_pagecache_pa /* linux/mm/swap.c */ extern void FASTCALL(lru_cache_add(struct page *)); extern void FASTCALL(lru_cache_add_active(struct page *)); -extern void FASTCALL(activate_page(struct page *)); extern void FASTCALL(mark_page_accessed(struct page *)); extern void lru_add_drain(void); extern int lru_add_drain_all(void); Index: linux-2.6/mm/swapfile.c =================================================================== --- linux-2.6.orig/mm/swapfile.c 2006-07-12 16:07:32.000000000 +0200 +++ linux-2.6/mm/swapfile.c 2006-07-12 16:11:36.000000000 +0200 @@ -496,7 +496,7 @@ static void unuse_pte(struct vm_area_str * Move the page to the active list so it is not * immediately swapped out again after swapon. */ - activate_page(page); + mark_page_accessed(page); } static int unuse_pte_range(struct vm_area_struct *vma, pmd_t *pmd, @@ -598,7 +598,7 @@ static int unuse_mm(struct mm_struct *mm * Activate page so shrink_cache is unlikely to unmap its * ptes while lock is dropped, so swapoff can make progress. */ - activate_page(page); + mark_page_accessed(page); unlock_page(page); down_read(&mm->mmap_sem); lock_page(page); -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org