Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/nfsclient/nfs_clsubs.c
Context not available. | |||||
extern struct nfsmount *ncl_iodmount[NFS_MAXASYNCDAEMON]; | extern struct nfsmount *ncl_iodmount[NFS_MAXASYNCDAEMON]; | ||||
extern int ncl_numasync; | extern int ncl_numasync; | ||||
extern unsigned int ncl_iodmax; | extern unsigned int ncl_iodmax; | ||||
extern struct nfsstats newnfsstats; | extern struct nfsstatsv1 nfsstatsv1; | ||||
struct task ncl_nfsiodnew_task; | struct task ncl_nfsiodnew_task; | ||||
Context not available. | |||||
if ((time_second - np->n_attrstamp) >= timeo && | if ((time_second - np->n_attrstamp) >= timeo && | ||||
(mustflush != 0 || np->n_attrstamp == 0)) { | (mustflush != 0 || np->n_attrstamp == 0)) { | ||||
newnfsstats.attrcache_misses++; | nfsstatsv1.attrcache_misses++; | ||||
mtx_unlock(&np->n_mtx); | mtx_unlock(&np->n_mtx); | ||||
#ifdef NFS_ACDEBUG | #ifdef NFS_ACDEBUG | ||||
mtx_unlock(&Giant); /* ncl_printf() */ | mtx_unlock(&Giant); /* ncl_printf() */ | ||||
Context not available. | |||||
KDTRACE_NFS_ATTRCACHE_GET_MISS(vp); | KDTRACE_NFS_ATTRCACHE_GET_MISS(vp); | ||||
return( ENOENT); | return( ENOENT); | ||||
} | } | ||||
newnfsstats.attrcache_hits++; | nfsstatsv1.attrcache_hits++; | ||||
if (vap->va_size != np->n_size) { | if (vap->va_size != np->n_size) { | ||||
if (vap->va_type == VREG) { | if (vap->va_type == VREG) { | ||||
if (np->n_flag & NMODIFIED) { | if (np->n_flag & NMODIFIED) { | ||||
Context not available. |