Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/sys/miscfs/genfs Pull up revision 1.76 (requested by tl...
details: https://anonhg.NetBSD.org/src/rev/47183d40187a
branches: netbsd-1-6
changeset: 530611:47183d40187a
user: tron <tron%NetBSD.org@localhost>
date: Tue Aug 26 06:46:25 2003 +0000
description:
Pull up revision 1.76 (requested by tls in ticket #1434):
Correct use of MAXBSIZE where MAXPHYS was intended. This is a necessary
first step towards per-device MAXPHYS, and has the beneficial side effect
of allowing clustering to MAXPHYS even on systems that need to run with
a reduced MAXBSIZE to get more metadata buffers.
diffstat:
sys/miscfs/genfs/genfs_vnops.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 036025ec6ff2 -r 47183d40187a sys/miscfs/genfs/genfs_vnops.c
--- a/sys/miscfs/genfs/genfs_vnops.c Tue Aug 26 06:46:16 2003 +0000
+++ b/sys/miscfs/genfs/genfs_vnops.c Tue Aug 26 06:46:25 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: genfs_vnops.c,v 1.63.2.2 2002/10/23 12:18:12 lukem Exp $ */
+/* $NetBSD: genfs_vnops.c,v 1.63.2.3 2003/08/26 06:46:25 tron Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfs_vnops.c,v 1.63.2.2 2002/10/23 12:18:12 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfs_vnops.c,v 1.63.2.3 2003/08/26 06:46:25 tron Exp $");
#include "opt_nfsserver.h"
@@ -1027,7 +1027,8 @@
off_t endoff = ap->a_offhi;
off_t off;
int flags = ap->a_flags;
- const int maxpages = MAXBSIZE >> PAGE_SHIFT;
+ /* Even for strange MAXPHYS, the shift rounds down to a page */
+ const int maxpages = MAXPHYS >> PAGE_SHIFT;
int i, s, error, npages, nback;
int freeflag;
struct vm_page *pgs[maxpages], *pg, *nextpg, *tpg, curmp, endmp;
Home |
Main Index |
Thread Index |
Old Index