diff options
author | jhb <jhb@FreeBSD.org> | 2010-07-15 19:40:48 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2010-07-15 19:40:48 +0000 |
commit | 6f863ac2c4816a2691785e677b73430d5dc4fcf0 (patch) | |
tree | 116f764686b0f5fda9d5659bbd023b4c128fa8c7 /sys/nfsclient | |
parent | 9e1b696f6548c49277ca0b1d72927a89f4b11cfa (diff) | |
download | FreeBSD-src-6f863ac2c4816a2691785e677b73430d5dc4fcf0.zip FreeBSD-src-6f863ac2c4816a2691785e677b73430d5dc4fcf0.tar.gz |
Retire the NFS access cache timestamp structure. It was used in VOP_OPEN()
to avoid sending multiple ACCESS/GETATTR RPCs during a single open()
between VOP_LOOKUP() and VOP_OPEN(). Now we always send the RPC in
VOP_LOOKUP() and not VOP_OPEN() in the cases that multiple RPCs could be
sent.
MFC after: 2 weeks
Diffstat (limited to 'sys/nfsclient')
-rw-r--r-- | sys/nfsclient/nfs_subs.c | 9 | ||||
-rw-r--r-- | sys/nfsclient/nfsnode.h | 11 |
2 files changed, 0 insertions, 20 deletions
diff --git a/sys/nfsclient/nfs_subs.c b/sys/nfsclient/nfs_subs.c index 3613756..0ab5fa2 100644 --- a/sys/nfsclient/nfs_subs.c +++ b/sys/nfsclient/nfs_subs.c @@ -470,7 +470,6 @@ nfs_loadattrcache(struct vnode **vpp, struct mbuf **mdp, caddr_t *dposp, u_short vmode; struct timespec mtime, mtime_save; int v3 = NFS_ISV3(vp); - struct thread *td = curthread; int error = 0; md = *mdp; @@ -574,14 +573,6 @@ nfs_loadattrcache(struct vnode **vpp, struct mbuf **mdp, caddr_t *dposp, vap->va_filerev = 0; } np->n_attrstamp = time_second; - /* Timestamp the NFS otw getattr fetch */ - if (td->td_proc) { - np->n_ac_ts_tid = td->td_tid; - np->n_ac_ts_pid = td->td_proc->p_pid; - np->n_ac_ts_syscalls = td->td_syscalls; - } else - bzero(&np->n_ac_ts, sizeof(struct nfs_attrcache_timestamp)); - if (vap->va_size != np->n_size) { if (vap->va_type == VREG) { if (dontshrink && vap->va_size < np->n_size) { diff --git a/sys/nfsclient/nfsnode.h b/sys/nfsclient/nfsnode.h index 46d1bd6..a7adeae 100644 --- a/sys/nfsclient/nfsnode.h +++ b/sys/nfsclient/nfsnode.h @@ -74,16 +74,6 @@ struct nfsdmap { #define ndm_cookies ndm_un1.ndmu3_cookies #define ndm4_cookies ndm_un1.ndmu4_cookies -#define n_ac_ts_tid n_ac_ts.nfs_ac_ts_tid -#define n_ac_ts_pid n_ac_ts.nfs_ac_ts_pid -#define n_ac_ts_syscalls n_ac_ts.nfs_ac_ts_syscalls - -struct nfs_attrcache_timestamp { - lwpid_t nfs_ac_ts_tid; - pid_t nfs_ac_ts_pid; - unsigned long nfs_ac_ts_syscalls; -}; - struct nfs_accesscache { u_int32_t mode; /* ACCESS mode cache */ uid_t uid; /* credentials having mode */ @@ -140,7 +130,6 @@ struct nfsnode { uint32_t n_namelen; int n_directio_opens; int n_directio_asyncwr; - struct nfs_attrcache_timestamp n_ac_ts; }; #define n_atim n_un1.nf_atim |