Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932233AbVL3Wlj (ORCPT ); Fri, 30 Dec 2005 17:41:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932158AbVL3WlO (ORCPT ); Fri, 30 Dec 2005 17:41:14 -0500 Received: from amsfep13-int.chello.nl ([213.46.243.23]:49747 "EHLO amsfep13-int.chello.nl") by vger.kernel.org with ESMTP id S1751270AbVL3Wk4 (ORCPT ); Fri, 30 Dec 2005 17:40:56 -0500 From: Peter Zijlstra To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Andrew Morton , Peter Zijlstra , Christoph Lameter , Wu Fengguang , Nick Piggin , Marijn Meijles , Rik van Riel , Marcelo Tosatti Message-Id: <20051230224032.765.94689.sendpatchset@twins.localnet> In-Reply-To: <20051230223952.765.21096.sendpatchset@twins.localnet> References: <20051230223952.765.21096.sendpatchset@twins.localnet> Subject: [PATCH 04/14] page-replace-activate_page.patch Date: Fri, 30 Dec 2005 23:40:54 +0100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1840 Lines: 55 From: Peter Zijlstra page-replace interface function: page_replace_activate() This function will modify the page state for a reference action. Signed-off-by: Peter Zijlstra include/linux/mm_page_replace.h | 4 ++++ mm/vmscan.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) Index: linux-2.6-git/include/linux/mm_page_replace.h =================================================================== --- linux-2.6-git.orig/include/linux/mm_page_replace.h 2005-12-10 17:13:56.000000000 +0100 +++ linux-2.6-git/include/linux/mm_page_replace.h 2005-12-10 18:19:30.000000000 +0100 @@ -7,6 +7,10 @@ #include void __page_replace_insert(struct zone *, struct page *); +static inline void page_replace_activate(struct page *page) +{ + SetPageActive(page); +} #endif /* __KERNEL__ */ #endif /* _LINUX_MM_PAGE_REPLACE_H */ Index: linux-2.6-git/mm/vmscan.c =================================================================== --- linux-2.6-git.orig/mm/vmscan.c 2005-12-10 17:13:57.000000000 +0100 +++ linux-2.6-git/mm/vmscan.c 2005-12-10 18:19:34.000000000 +0100 @@ -33,6 +33,7 @@ #include #include #include +#include #include #include @@ -573,7 +574,7 @@ static int shrink_list(struct list_head switch(try_pageout(page, sc)) { case PAGEOUT_ACTIVATE: - SetPageActive(page); + page_replace_activate(page); pgactivate++; /* fall through */ case PAGEOUT_KEEP: - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/