Source-Changes-HG archive

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

[src/trunk]: src/sys/nfs s/time/mono_time/ for n_attrstamp and n_accstamp. (...



details:   https://anonhg.NetBSD.org/src/rev/0c95e635d285
branches:  trunk
changeset: 573180:0c95e635d285
user:      yamt <yamt%NetBSD.org@localhost>
date:      Fri Jan 21 14:31:29 2005 +0000

description:
s/time/mono_time/ for n_attrstamp and n_accstamp.  (parts of) PR/25641.

diffstat:

 sys/nfs/nfs_subs.c  |  8 ++++----
 sys/nfs/nfs_vnops.c |  8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (72 lines):

diff -r 8deccc56a420 -r 0c95e635d285 sys/nfs/nfs_subs.c
--- a/sys/nfs/nfs_subs.c        Fri Jan 21 12:32:18 2005 +0000
+++ b/sys/nfs/nfs_subs.c        Fri Jan 21 14:31:29 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_subs.c,v 1.141 2005/01/19 16:22:19 yamt Exp $      */
+/*     $NetBSD: nfs_subs.c,v 1.142 2005/01/21 14:31:29 yamt Exp $      */
 
 /*
  * Copyright (c) 1989, 1993
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nfs_subs.c,v 1.141 2005/01/19 16:22:19 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nfs_subs.c,v 1.142 2005/01/21 14:31:29 yamt Exp $");
 
 #include "fs_nfs.h"
 #include "opt_nfs.h"
@@ -1832,7 +1832,7 @@
                        }
                }
        }
-       np->n_attrstamp = time.tv_sec;
+       np->n_attrstamp = mono_time.tv_sec;
        if (vaper != NULL) {
                memcpy((caddr_t)vaper, (caddr_t)vap, sizeof(*vap));
                if (np->n_flag & NCHG) {
@@ -1859,7 +1859,7 @@
        struct vattr *vap;
 
        if (np->n_attrstamp == 0 ||
-           (time.tv_sec - np->n_attrstamp) >= NFS_ATTRTIMEO(np)) {
+           (mono_time.tv_sec - np->n_attrstamp) >= NFS_ATTRTIMEO(np)) {
                nfsstats.attrcache_misses++;
                return (ENOENT);
        }
diff -r 8deccc56a420 -r 0c95e635d285 sys/nfs/nfs_vnops.c
--- a/sys/nfs/nfs_vnops.c       Fri Jan 21 12:32:18 2005 +0000
+++ b/sys/nfs/nfs_vnops.c       Fri Jan 21 14:31:29 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_vnops.c,v 1.216 2005/01/19 16:22:19 yamt Exp $     */
+/*     $NetBSD: nfs_vnops.c,v 1.217 2005/01/21 14:31:29 yamt Exp $     */
 
 /*
  * Copyright (c) 1989, 1993
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nfs_vnops.c,v 1.216 2005/01/19 16:22:19 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nfs_vnops.c,v 1.217 2005/01/21 14:31:29 yamt Exp $");
 
 #include "opt_inet.h"
 #include "opt_nfs.h"
@@ -336,7 +336,7 @@
        struct nfsnode *np = VTONFS(vp);
 
        cachevalid = (np->n_accstamp != -1 &&
-           (time.tv_sec - np->n_accstamp) < NFS_ATTRTIMEO(np) &&
+           (mono_time.tv_sec - np->n_accstamp) < NFS_ATTRTIMEO(np) &&
            np->n_accuid == ap->a_cred->cr_uid);
 
        /*
@@ -430,7 +430,7 @@
                        else if ((np->n_accmode & ap->a_mode) == ap->a_mode)
                                np->n_accmode = ap->a_mode;
                } else {
-                       np->n_accstamp = time.tv_sec;
+                       np->n_accstamp = mono_time.tv_sec;
                        np->n_accuid = ap->a_cred->cr_uid;
                        np->n_accmode = ap->a_mode;
                        np->n_accerror = error;



Home | Main Index | Thread Index | Old Index