Module Name:    src
Committed By:   yamt
Date:           Wed Nov 30 14:33:47 UTC 2011

Modified Files:
        src/sys/ufs/lfs [yamt-pagecache]: lfs.h
        src/sys/uvm [yamt-pagecache]: uvm_page.c uvm_page.h

Log Message:
make lfs another pager specific flag so that it won't be affected by
an nfs hack in genfs.


To generate a diff of this commit:
cvs rdiff -u -r1.134 -r1.134.2.1 src/sys/ufs/lfs/lfs.h
cvs rdiff -u -r1.178.2.7 -r1.178.2.8 src/sys/uvm/uvm_page.c
cvs rdiff -u -r1.73.2.7 -r1.73.2.8 src/sys/uvm/uvm_page.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/ufs/lfs/lfs.h
diff -u src/sys/ufs/lfs/lfs.h:1.134 src/sys/ufs/lfs/lfs.h:1.134.2.1
--- src/sys/ufs/lfs/lfs.h:1.134	Mon Jul 11 08:27:40 2011
+++ src/sys/ufs/lfs/lfs.h	Wed Nov 30 14:33:46 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: lfs.h,v 1.134 2011/07/11 08:27:40 hannken Exp $	*/
+/*	$NetBSD: lfs.h,v 1.134.2.1 2011/11/30 14:33:46 yamt Exp $	*/
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc.
@@ -103,7 +103,7 @@
 
 /* Misc. definitions */
 #define BW_CLEAN	1		/* Flag for lfs_bwrite_ext() */
-#define PG_DELWRI	PG_PAGER1	/* Local def for delayed pageout */
+#define PG_DELWRI	PG_PAGER2	/* Local def for delayed pageout */
 
 /* Resource limits */
 #define	LFS_MAX_RESOURCE(x, u)	(((x) >> 2) - 10 * (u))

Index: src/sys/uvm/uvm_page.c
diff -u src/sys/uvm/uvm_page.c:1.178.2.7 src/sys/uvm/uvm_page.c:1.178.2.8
--- src/sys/uvm/uvm_page.c:1.178.2.7	Sun Nov 20 10:52:34 2011
+++ src/sys/uvm/uvm_page.c	Wed Nov 30 14:33:46 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_page.c,v 1.178.2.7 2011/11/20 10:52:34 yamt Exp $	*/
+/*	$NetBSD: uvm_page.c,v 1.178.2.8 2011/11/30 14:33:46 yamt Exp $	*/
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.178.2.7 2011/11/20 10:52:34 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.178.2.8 2011/11/30 14:33:46 yamt Exp $");
 
 #include "opt_ddb.h"
 #include "opt_uvmhist.h"
@@ -1556,7 +1556,8 @@ uvm_pagefree(struct vm_page *pg)
 		if (pg->flags & PG_WANTED) {
 			wakeup(pg);
 		}
-		pg->flags &= ~(PG_WANTED|PG_BUSY|PG_RELEASED|PG_PAGER1);
+		pg->flags &=
+		    ~(PG_WANTED|PG_BUSY|PG_RELEASED|PG_PAGER1|PG_PAGER2);
 #ifdef UVM_PAGE_TRKOWN
 		pg->owner_tag = NULL;
 #endif

Index: src/sys/uvm/uvm_page.h
diff -u src/sys/uvm/uvm_page.h:1.73.2.7 src/sys/uvm/uvm_page.h:1.73.2.8
--- src/sys/uvm/uvm_page.h:1.73.2.7	Sun Nov 20 10:52:34 2011
+++ src/sys/uvm/uvm_page.h	Wed Nov 30 14:33:47 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_page.h,v 1.73.2.7 2011/11/20 10:52:34 yamt Exp $	*/
+/*	$NetBSD: uvm_page.h,v 1.73.2.8 2011/11/30 14:33:47 yamt Exp $	*/
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -181,11 +181,13 @@ struct vm_page {
 #define	PG_HOLE		0x0400		/* XXX */
 
 #define PG_PAGER1	0x1000		/* pager-specific flag */
+#define PG_PAGER2	0x2000		/* pager-specific flag */
 
 #define	UVM_PGFLAGBITS \
 	"\20\1CLEAN\2DIRTY\3BUSY\4WANTED" \
 	"\5PAGEOUT\6RELEASED\7FAKE\10RDONLY" \
-	"\11ZERO\12TABLED\13HOLE"
+	"\11ZERO\12TABLED\13HOLE" \
+	"\15PAGER1\16PAGER2"
 
 #define PQ_FREE		0x0001		/* page is on free list */
 #define PQ_ANON		0x0002		/* page is part of an anon, rather

Reply via email to