Home
last modified time | relevance | path

Searched refs:lktype (Results 1 – 5 of 5) sorted by relevance

/freebsd/sys/fs/nfsserver/
H A Dnfs_nfsdsocket.c542 int error = 0, lktype; in nfsrvd_dorpc() local
589 lktype = LK_SHARED; in nfsrvd_dorpc()
591 lktype = LK_EXCLUSIVE; in nfsrvd_dorpc()
593 nfsd_fhtovp(nd, &nfs_pubfh, lktype, &vp, &nes, in nfsrvd_dorpc()
596 nfsd_fhtovp(nd, &fh, lktype, &vp, &nes, in nfsrvd_dorpc()
712 int i, lktype, op, op0 = 0, rstat, statsinprog = 0; in nfsrvd_compound() local
1295 lktype = nfsv4_opflag[op].lktype; in nfsrvd_compound()
1301 lktype = LK_SHARED; in nfsrvd_compound()
1303 if (NFSVOPLOCK(vp, lktype) == 0) in nfsrvd_compound()
H A Dnfs_nfsdport.c3378 int lktype, struct vnode **vpp, struct nfsexstuff *exp, in nfsvno_fhtovp() argument
3385 error = VFS_FHTOVP(mp, &fhp->fh_fid, lktype, vpp); in nfsvno_fhtovp()
3428 nfsd_fhtovp(struct nfsrv_descript *nd, struct nfsrvfh *nfp, int lktype, in nfsd_fhtovp() argument
3456 if (lktype == LK_SHARED && !(MNT_SHARED_WRITES(mp))) in nfsd_fhtovp()
3457 lktype = LK_EXCLUSIVE; in nfsd_fhtovp()
3461 nd->nd_repstat = nfsvno_fhtovp(mp, fhp, nd->nd_nam, lktype, vpp, exp, in nfsd_fhtovp()
5104 nfsrv_dsgetsockmnt(struct vnode *vp, int lktype, char *buf, int *buflenp, in nfsrv_dsgetsockmnt() argument
5228 if (lktype != 0 || fhiszero != 0 || in nfsrv_dsgetsockmnt()
5233 else if (lktype != 0) in nfsrv_dsgetsockmnt()
5234 error = vn_lock(dvp, lktype); in nfsrv_dsgetsockmnt()
[all …]
H A Dnfs_nfsdstate.c5197 int gotlock, lktype = 0; in nfsrv_clientconflict() local
5208 lktype = NFSVOPISLOCKED(vp); in nfsrv_clientconflict()
5220 NFSVOPLOCK(vp, lktype | LK_RETRY); in nfsrv_clientconflict()
5265 int gotlock, error, lktype = 0, retrycnt, zapped_clp; in nfsrv_delegconflict() local
5388 lktype = NFSVOPISLOCKED(vp); in nfsrv_delegconflict()
5400 NFSVOPLOCK(vp, lktype | LK_RETRY); in nfsrv_delegconflict()
/freebsd/sys/fs/nfsclient/
H A Dnfs_clvnops.c333 int error, lktype; in nfs_lock() local
337 lktype = ap->a_flags & LK_TYPE_MASK; in nfs_lock()
345 if ((np->n_flag & NVNSETSZSKIP) == 0 || (lktype != LK_SHARED && in nfs_lock()
346 lktype != LK_EXCLUSIVE && lktype != LK_UPGRADE && in nfs_lock()
347 lktype != LK_TRYUPGRADE)) { in nfs_lock()
353 (lktype == LK_SHARED || lktype == LK_EXCLUSIVE); in nfs_lock()
365 (lktype == LK_SHARED && vp->v_vnlock->lk_recurse > 0)) { in nfs_lock()
369 if (lktype == LK_SHARED) { in nfs_lock()
391 if (lktype == LK_SHARED) { in nfs_lock()
/freebsd/sys/fs/nfs/
H A Dnfs.h780 int lktype; member