[PATCH 04/14] page-replace-activate_page.patch
- From: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
- Date: Fri, 30 Dec 2005 23:40:54 +0100
From: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
page-replace interface function:
page_replace_activate()
This function will modify the page state for a reference action.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
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 <linux/mm.h>
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 <linux/cpuset.h>
#include <linux/notifier.h>
#include <linux/rwsem.h>
+#include <linux/mm_page_replace.h>
#include <asm/tlbflush.h>
#include <asm/div64.h>
@@ -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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH] vm: page-replace and clockpro
- From: Peter Zijlstra
- [PATCH] vm: page-replace and clockpro
- Prev by Date: [PATCH 2/9] clockpro-nonresident-del.patch
- Next by Date: [PATCH 06/14] page-replace-move-macros.patch
- Previous by thread: [PATCH 2/9] clockpro-nonresident-del.patch
- Next by thread: [PATCH 06/14] page-replace-move-macros.patch
- Index(es):
Relevant Pages
- [PATCH 08/14] page-replace-candidates.patch
... From: Peter Zijlstra ... Abstract the taking of candidate reclaim pages
and place the new function ... the place where all list manupulation happens. ...
(Linux-Kernel) - [PATCH 09/14] page-replace-reinsert.patch
... From: Peter Zijlstra ... This function will reinsert those candidate
pages that were not ... Prev by Date: ... (Linux-Kernel)