Lines Matching full:np

99 	struct nfsnode *np;  in ncl_nget()  local
125 np = uma_zalloc(newnfsnode_zone, M_WAITOK | M_ZERO); in ncl_nget()
129 uma_zfree(newnfsnode_zone, np); in ncl_nget()
134 vp->v_data = np; in ncl_nget()
135 np->n_vnode = vp; in ncl_nget()
142 mtx_init(&np->n_mtx, "NEWNFSnode lock", NULL, MTX_DEF | MTX_DUPOK); in ncl_nget()
143 lockinit(&np->n_excl, PVFS, "nfsupg", VLKTIMEOUT, LK_NOSHARE | in ncl_nget()
165 np->n_fhp = malloc(sizeof (struct nfsfh) + fhsize, in ncl_nget()
167 bcopy(fhp, np->n_fhp->nfh_fh, fhsize); in ncl_nget()
168 np->n_fhp->nfh_len = fhsize; in ncl_nget()
172 free(np->n_fhp, M_NFSFH); in ncl_nget()
173 mtx_destroy(&np->n_mtx); in ncl_nget()
174 lockdestroy(&np->n_excl); in ncl_nget()
175 uma_zfree(newnfsnode_zone, np); in ncl_nget()
180 td, &nvp, newnfs_vncmpf, np->n_fhp); in ncl_nget()
188 *npp = np; in ncl_nget()
210 struct nfsnode *np; in ncl_releasesillyrename() local
214 np = VTONFS(vp); in ncl_releasesillyrename()
215 NFSASSERTNODE(np); in ncl_releasesillyrename()
217 sp = np->n_sillyrename; in ncl_releasesillyrename()
218 np->n_sillyrename = NULL; in ncl_releasesillyrename()
222 NFSUNLOCKNODE(np); in ncl_releasesillyrename()
231 NFSLOCKNODE(np); in ncl_releasesillyrename()
239 struct nfsnode *np; in ncl_inactive() local
243 np = VTONFS(vp); in ncl_inactive()
245 NFSLOCKNODE(np); in ncl_inactive()
246 np->n_openstateid = NULL; in ncl_inactive()
247 NFSUNLOCKNODE(np); in ncl_inactive()
259 NFSLOCKNODE(np); in ncl_inactive()
269 np->n_flag &= (NMODIFIED | NDSCOMMIT); in ncl_inactive()
270 NFSUNLOCKNODE(np); in ncl_inactive()
281 struct nfsnode *np = VTONFS(vp); in ncl_reclaim() local
296 NFSLOCKNODE(np); in ncl_reclaim()
300 np->n_openstateid = NULL; in ncl_reclaim()
301 NFSUNLOCKNODE(np); in ncl_reclaim()
322 NFSUNLOCKNODE(np); in ncl_reclaim()
339 dp = LIST_FIRST(&np->n_cookies); in ncl_reclaim()
346 if (np->n_writecred != NULL) in ncl_reclaim()
347 crfree(np->n_writecred); in ncl_reclaim()
348 free(np->n_fhp, M_NFSFH); in ncl_reclaim()
349 if (np->n_v4 != NULL) in ncl_reclaim()
350 free(np->n_v4, M_NFSV4NODE); in ncl_reclaim()
351 mtx_destroy(&np->n_mtx); in ncl_reclaim()
352 lockdestroy(&np->n_excl); in ncl_reclaim()
364 struct nfsnode *np = VTONFS(vp); in ncl_invalcaches() local
367 NFSLOCKNODE(np); in ncl_invalcaches()
369 np->n_accesscache[i].stamp = 0; in ncl_invalcaches()
371 np->n_attrstamp = 0; in ncl_invalcaches()
373 NFSUNLOCKNODE(np); in ncl_invalcaches()