Source-Changes-HG archive

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

[src/trunk]: src/sys/miscfs/genfs We don't need to re-activate page in genfs_...



details:   https://anonhg.NetBSD.org/src/rev/99b22c656f45
branches:  trunk
changeset: 526146:99b22c656f45
user:      enami <enami%NetBSD.org@localhost>
date:      Fri Apr 26 03:57:31 2002 +0000

description:
We don't need to re-activate page in genfs_putpages() when GOP_WRITE returns
ENOMEM (temporary memory shortage) since it is already handled in
uvm_aio_aiodone() for both async/sync case.  Discussed with chuq.

diffstat:

 sys/miscfs/genfs/genfs_vnops.c |  16 ++--------------
 1 files changed, 2 insertions(+), 14 deletions(-)

diffs (37 lines):

diff -r ea15bd0a3be3 -r 99b22c656f45 sys/miscfs/genfs/genfs_vnops.c
--- a/sys/miscfs/genfs/genfs_vnops.c    Fri Apr 26 03:49:21 2002 +0000
+++ b/sys/miscfs/genfs/genfs_vnops.c    Fri Apr 26 03:57:31 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: genfs_vnops.c,v 1.54 2002/04/16 06:05:05 enami Exp $   */
+/*     $NetBSD: genfs_vnops.c,v 1.55 2002/04/26 03:57:31 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.54 2002/04/16 06:05:05 enami Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfs_vnops.c,v 1.55 2002/04/26 03:57:31 enami Exp $");
 
 #include "opt_nfsserver.h"
 
@@ -1236,18 +1236,6 @@
                                pg = TAILQ_NEXT(&curmp, listq);
                                TAILQ_REMOVE(&uobj->memq, &curmp, listq);
                        }
-                       if (error == ENOMEM) {
-                               for (i = 0; i < npages; i++) {
-                                       tpg = pgs[i];
-                                       if (tpg->flags & PG_PAGEOUT) {
-                                               tpg->flags &= ~PG_PAGEOUT;
-                                               uvmexp.paging--;
-                                       }
-                                       tpg->flags &= ~PG_CLEAN;
-                                       uvm_pageactivate(tpg);
-                               }
-                               uvm_page_unbusy(pgs, npages);
-                       }
                        if (error) {
                                break;
                        }



Home | Main Index | Thread Index | Old Index