Home | History | Annotate | Download | only in nlm

Lines Matching refs:vs

1762     fhandle_t *fhp, struct vfs_state *vs, accmode_t accmode)
1767 memset(vs, 0, sizeof(*vs));
1769 vs->vs_mp = vfs_getvfs(&fhp->fh_fsid);
1770 if (!vs->vs_mp) {
1776 error = VFS_CHECKEXP(vs->vs_mp,
1783 (vs->vs_mp->mnt_flag & MNT_RDONLY)) {
1789 error = VFS_FHTOVP(vs->vs_mp, &fhp->fh_fid, LK_EXCLUSIVE, &vs->vs_vp);
1792 vs->vs_vnlocked = TRUE;
1808 error = VOP_ACCESS(vs->vs_vp, accmode, cred, curthread);
1815 error = VOP_ACCESS(vs->vs_vp, VWRITE, cred, curthread);
1821 VOP_UNLOCK(vs->vs_vp, 0, curthread);
1823 VOP_UNLOCK(vs->vs_vp, 0);
1825 vs->vs_vnlocked = FALSE;
1837 nlm_release_vfs_state(struct vfs_state *vs)
1840 if (vs->vs_vp) {
1841 if (vs->vs_vnlocked)
1842 vput(vs->vs_vp);
1844 vrele(vs->vs_vp);
1846 if (vs->vs_mp)
1847 vfs_rel(vs->vs_mp);
1867 struct vfs_state vs;
1874 memset(&vs, 0, sizeof(vs));
1898 error = nlm_get_vfs_state(host, rqstp, &fh, &vs, accmode);
1913 error = VOP_ADVLOCK(vs.vs_vp, NULL, F_GETLK, &fl, F_REMOTE);
1953 nlm_release_vfs_state(&vs);
1965 struct vfs_state vs;
1972 memset(&vs, 0, sizeof(vs));
2005 vs, accmode);
2063 af->af_vp = vs.vs_vp;
2096 error = VOP_ADVLOCKASYNC(vs.vs_vp, NULL, F_SETLK, &fl, F_REMOTE,
2119 vs.vs_vp = NULL;
2122 error = VOP_ADVLOCK(vs.vs_vp, NULL, F_SETLK, &fl, F_REMOTE);
2142 nlm_release_vfs_state(&vs);
2154 struct vfs_state vs;
2161 memset(&vs, 0, sizeof(vs));
2184 error = nlm_get_vfs_state(host, rqstp, &fh, &vs, (accmode_t)0);
2232 nlm_release_vfs_state(&vs);
2244 struct vfs_state vs;
2250 memset(&vs, 0, sizeof(vs));
2273 error = nlm_get_vfs_state(host, rqstp, &fh, &vs, (accmode_t)0);
2285 error = VOP_ADVLOCK(vs.vs_vp, NULL, F_UNLCK, &fl, F_REMOTE);
2294 nlm_release_vfs_state(&vs);