Lines Matching refs:nfhp

213 nfscl_open(vnode_t vp, u_int8_t *nfhp, int fhlen, u_int32_t amode, int usedeleg,  in nfscl_open()  argument
238 if (nfhp != NULL) { in nfscl_open()
259 if (nfhp != NULL && usedeleg) { in nfscl_open()
260 LIST_FOREACH(dp, NFSCLDELEGHASH(clp, nfhp, fhlen), nfsdl_hash) { in nfscl_open()
262 !NFSBCMP(nfhp, dp->nfsdl_fh, fhlen)) { in nfscl_open()
290 nfscl_newopen(clp, dp, &owp, &nowp, &op, &nop, own, nfhp, fhlen, in nfscl_open()
298 if (nfhp != NULL && dp != NULL && nop == NULL) in nfscl_open()
431 nfscl_deleg(mount_t mp, struct nfsclclient *clp, u_int8_t *nfhp, in nfscl_deleg() argument
451 tdp = nfscl_finddeleg(clp, nfhp, fhlen); in nfscl_deleg()
458 LIST_INSERT_HEAD(NFSCLDELEGHASH(clp, nfhp, fhlen), dp, in nfscl_deleg()
476 LIST_INSERT_HEAD(NFSCLDELEGHASH(clp, nfhp, in nfscl_deleg()
516 nfscl_getstateid(vnode_t vp, u_int8_t *nfhp, int fhlen, u_int32_t mode, in nfscl_getstateid() argument
592 LIST_FOREACH(dp, NFSCLDELEGHASH(clp, nfhp, fhlen), nfsdl_hash) { in nfscl_getstateid()
594 !NFSBCMP(nfhp, dp->nfsdl_fh, fhlen)) { in nfscl_getstateid()
633 error = nfscl_getopen(NULL, clp->nfsc_openhash, nfhp, fhlen, in nfscl_getstateid()
655 oph = NFSCLOPENHASH(clp, nfhp, fhlen); in nfscl_getstateid()
658 !NFSBCMP(op->nfso_fh, nfhp, fhlen)) { in nfscl_getstateid()
709 u_int8_t *nfhp, int fhlen, u_int8_t *openown, u_int8_t *lockown, in nfscl_getopen() argument
741 !NFSBCMP(op->nfso_fh, nfhp, fhlen) in nfscl_getopen()
753 oph = &ohashp[NFSCLOPENHASHFUNC(nfhp, fhlen)]; in nfscl_getopen()
756 !NFSBCMP(op->nfso_fh, nfhp, fhlen) in nfscl_getopen()
3205 struct nfsfh *nfhp; in nfscl_dupopen() local
3212 nfhp = VTONFS(vp)->n_fhp; in nfscl_dupopen()
3266 if (nfhp->nfh_len == op2->nfso_fhlen && in nfscl_dupopen()
3267 !NFSBCMP(nfhp->nfh_fh, op2->nfso_fh, nfhp->nfh_len)) { in nfscl_dupopen()
3270 if (op != op2 && nfhp->nfh_len == op->nfso_fhlen && in nfscl_dupopen()
3271 !NFSBCMP(nfhp->nfh_fh, op->nfso_fh, nfhp->nfh_len) && in nfscl_dupopen()
3314 struct nfsfh *nfhp; in nfscl_getclose() local
3322 nfhp = VTONFS(vp)->n_fhp; in nfscl_getclose()
3333 dp = nfscl_finddeleg(clp, nfhp->nfh_fh, nfhp->nfh_len); in nfscl_getclose()
3355 LIST_FOREACH(op, NFSCLOPENHASH(clp, nfhp->nfh_fh, nfhp->nfh_len), in nfscl_getclose()
3357 if (op->nfso_fhlen == nfhp->nfh_len && in nfscl_getclose()
3358 !NFSBCMP(op->nfso_fh, nfhp->nfh_fh, in nfscl_getclose()
3359 nfhp->nfh_len)) { in nfscl_getclose()
3389 struct nfsfh *nfhp; in nfscl_doclose() local
3400 nfhp = VTONFS(vp)->n_fhp; in nfscl_doclose()
3407 dp = nfscl_finddeleg(clp, nfhp->nfh_fh, nfhp->nfh_len); in nfscl_doclose()
3421 nfscl_retoncloselayout(vp, clp, nfhp->nfh_fh, nfhp->nfh_len, &recallp, in nfscl_doclose()
3427 LIST_FOREACH(op, NFSCLOPENHASH(clp, nfhp->nfh_fh, nfhp->nfh_len), in nfscl_doclose()
3429 if (op->nfso_fhlen == nfhp->nfh_len && in nfscl_doclose()
3430 !NFSBCMP(op->nfso_fh, nfhp->nfh_fh, in nfscl_doclose()
3431 nfhp->nfh_len)) { in nfscl_doclose()
3565 struct nfsfh *nfhp; in nfscl_docb() local
3649 error = nfsm_getfh(nd, &nfhp); in nfscl_docb()
3660 error = nfscl_ngetreopen(mp, nfhp->nfh_fh, in nfscl_docb()
3661 nfhp->nfh_len, p, &np); in nfscl_docb()
3668 dp = nfscl_finddeleg(clp, nfhp->nfh_fh, in nfscl_docb()
3669 nfhp->nfh_len); in nfscl_docb()
3699 if (nfhp != NULL) in nfscl_docb()
3700 free(nfhp, M_NFSFH); in nfscl_docb()
3715 error = nfsm_getfh(nd, &nfhp); in nfscl_docb()
3723 nfscl_startdelegrecall(clp, nfhp); in nfscl_docb()
3728 if (nfhp != NULL) in nfscl_docb()
3729 free(nfhp, M_NFSFH); in nfscl_docb()
3733 nfhp = NULL; in nfscl_docb()
3750 error = nfsm_getfh(nd, &nfhp); in nfscl_docb()
3771 nfhp->nfh_fh, in nfscl_docb()
3772 nfhp->nfh_len); in nfscl_docb()
3808 free(nfhp, M_NFSFH); in nfscl_docb()
4513 struct nfsfh *nfhp; in nfscl_relock() local
4532 nfhp = VTONFS(vp)->n_fhp; in nfscl_relock()
4533 error = nfscl_trylock(nmp, vp, nfhp->nfh_fh, in nfscl_relock()
4534 nfhp->nfh_len, nlp, newone, 0, off, in nfscl_relock()
6011 void nfscl_startdelegrecall(struct nfsclclient *clp, struct nfsfh *nfhp) in nfscl_startdelegrecall() argument
6015 dp = nfscl_finddeleg(clp, nfhp->nfh_fh, nfhp->nfh_len); in nfscl_startdelegrecall()