diff --git a/sys/nfs/nfs_subs.c b/sys/nfs/nfs_subs.c index c8b1acb954c5..485bbf1bd62d 100644 --- a/sys/nfs/nfs_subs.c +++ b/sys/nfs/nfs_subs.c @@ -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 -__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 @@ nfs_loadattrcache(vpp, fp, vaper, flags) } } } - 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 @@ nfs_getattrcache(vp, vaper) 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 --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c index 4156560bf073..70c0a75219c0 100644 --- a/sys/nfs/nfs_vnops.c +++ b/sys/nfs/nfs_vnops.c @@ -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 -__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 @@ nfs_access(v) 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 @@ nfs_access(v) 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;