Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/miscfs/genfs Since npages may includes number of pages b...



details:   https://anonhg.NetBSD.org/src/rev/04953830d412
branches:  trunk
changeset: 526556:04953830d412
user:      enami <enami%NetBSD.org@localhost>
date:      Mon May 06 00:42:22 2002 +0000

description:
Since npages may includes number of pages behind us, we can't use it to
update current offset.  Instead, use the last page in the run of pages
to calculate new offset.

diffstat:

 sys/miscfs/genfs/genfs_vnops.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 55659704ffe6 -r 04953830d412 sys/miscfs/genfs/genfs_vnops.c
--- a/sys/miscfs/genfs/genfs_vnops.c    Mon May 06 00:18:15 2002 +0000
+++ b/sys/miscfs/genfs/genfs_vnops.c    Mon May 06 00:42:22 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: genfs_vnops.c,v 1.56 2002/05/06 00:18:15 enami Exp $   */
+/*     $NetBSD: genfs_vnops.c,v 1.57 2002/05/06 00:42:22 enami Exp $   */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfs_vnops.c,v 1.56 2002/05/06 00:18:15 enami Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfs_vnops.c,v 1.57 2002/05/06 00:42:22 enami Exp $");
 
 #include "opt_nfsserver.h"
 
@@ -1257,7 +1257,7 @@
                                pg = TAILQ_NEXT(pg, listq);
                        }
                } else {
-                       off += npages << PAGE_SHIFT;
+                       off = tpg->offset + PAGE_SIZE;
                        if (off < endoff) {
                                pg = uvm_pagelookup(uobj, off);
                        }



Home | Main Index | Thread Index | Old Index