Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/yamt-pagecache]: src/sys/miscfs/genfs g/c #if 1
details: https://anonhg.NetBSD.org/src/rev/4390deee8f69
branches: yamt-pagecache
changeset: 770841:4390deee8f69
user: yamt <yamt%NetBSD.org@localhost>
date: Wed Nov 30 14:31:29 2011 +0000
description:
g/c #if 1
comment
diffstat:
sys/miscfs/genfs/genfs_io.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (42 lines):
diff -r 9dcf8bbffb13 -r 4390deee8f69 sys/miscfs/genfs/genfs_io.c
--- a/sys/miscfs/genfs/genfs_io.c Sat Nov 26 15:37:50 2011 +0000
+++ b/sys/miscfs/genfs/genfs_io.c Wed Nov 30 14:31:29 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: genfs_io.c,v 1.53.2.4 2011/11/26 15:19:06 yamt Exp $ */
+/* $NetBSD: genfs_io.c,v 1.53.2.5 2011/11/30 14:31:29 yamt Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.53.2.4 2011/11/26 15:19:06 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.53.2.5 2011/11/30 14:31:29 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1094,9 +1094,12 @@
pg->flags |= PG_BUSY;
UVM_PAGE_OWN(pg, "genfs_putpages");
-#if 1 /* XXX notyet */
/*
* first look backward.
+ *
+ * XXX implement PG_PAGER1 incompatibility check.
+ * probably it's better to make PG_NEEDCOMMIT a first
+ * level citizen for uvm/genfs.
*/
npages = MIN(maxpages >> 1, off >> PAGE_SHIFT);
@@ -1113,9 +1116,6 @@
memset(&pgs[npages - nback], 0,
nback * sizeof(pgs[0]));
}
-#else
- nback = 0;
-#endif
/*
* then plug in our page of interest.
Home |
Main Index |
Thread Index |
Old Index