Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm uvmpd_scan_inactive: when reactivating a page,
details: https://anonhg.NetBSD.org/src/rev/976076678df2
branches: trunk
changeset: 586935:976076678df2
user: yamt <yamt%NetBSD.org@localhost>
date: Thu Jan 05 10:47:33 2006 +0000
description:
uvmpd_scan_inactive: when reactivating a page,
use pmap_is_referenced rather than pmap_clear_reference.
we don't need to clear the bit here as we'll do so when
moving pages back to inactive queue again. pointed by Chuck Silvers.
diffstat:
sys/uvm/uvm_pdaemon.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 0945acb5c3d8 -r 976076678df2 sys/uvm/uvm_pdaemon.c
--- a/sys/uvm/uvm_pdaemon.c Thu Jan 05 10:46:57 2006 +0000
+++ b/sys/uvm/uvm_pdaemon.c Thu Jan 05 10:47:33 2006 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_pdaemon.c,v 1.71 2005/12/21 12:24:47 yamt Exp $ */
+/* $NetBSD: uvm_pdaemon.c,v 1.72 2006/01/05 10:47:33 yamt Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_pdaemon.c,v 1.71 2005/12/21 12:24:47 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_pdaemon.c,v 1.72 2006/01/05 10:47:33 yamt Exp $");
#include "opt_uvmhist.h"
#include "opt_readahead.h"
@@ -475,7 +475,7 @@
* skip to next page.
*/
- if (pmap_clear_reference(p)) {
+ if (pmap_is_referenced(p)) {
uvm_pageactivate(p);
uvmexp.pdreact++;
continue;
Home |
Main Index |
Thread Index |
Old Index