Lines Matching refs:vpp

205     struct vnode **vpp)  in fuse_vnode_alloc()  argument
216 *vpp = NULL; in fuse_vnode_alloc()
217 err = vfs_hash_get(mp, fuse_vnode_hash(nodeid), LK_EXCLUSIVE, td, vpp, in fuse_vnode_alloc()
222 if (*vpp) { in fuse_vnode_alloc()
223 if ((*vpp)->v_type == vtyp) { in fuse_vnode_alloc()
225 MPASS((*vpp)->v_data != NULL); in fuse_vnode_alloc()
226 MPASS(VTOFUD(*vpp)->nid == nodeid); in fuse_vnode_alloc()
238 SDT_PROBE3(fusefs, , node, stale_vnode, *vpp, vtyp, in fuse_vnode_alloc()
240 fuse_internal_vnode_disappear(*vpp); in fuse_vnode_alloc()
241 vgone(*vpp); in fuse_vnode_alloc()
242 lockmgr((*vpp)->v_vnlock, LK_RELEASE, NULL); in fuse_vnode_alloc()
248 err = getnewvnode("fuse", mp, &fuse_fifoops, vpp); in fuse_vnode_alloc()
251 err = getnewvnode("fuse", mp, &fuse_vnops, vpp); in fuse_vnode_alloc()
258 lockmgr((*vpp)->v_vnlock, LK_EXCLUSIVE, NULL); in fuse_vnode_alloc()
259 fuse_vnode_init(*vpp, fvdat, nodeid, vtyp); in fuse_vnode_alloc()
260 err = insmntque(*vpp, mp); in fuse_vnode_alloc()
261 ASSERT_VOP_ELOCKED(*vpp, "fuse_vnode_alloc"); in fuse_vnode_alloc()
263 lockmgr((*vpp)->v_vnlock, LK_RELEASE, NULL); in fuse_vnode_alloc()
265 *vpp = NULL; in fuse_vnode_alloc()
270 VN_LOCK_ASHARE(*vpp); in fuse_vnode_alloc()
272 vn_set_state(*vpp, VSTATE_CONSTRUCTED); in fuse_vnode_alloc()
273 err = vfs_hash_insert(*vpp, fuse_vnode_hash(nodeid), LK_EXCLUSIVE, in fuse_vnode_alloc()
276 lockmgr((*vpp)->v_vnlock, LK_RELEASE, NULL); in fuse_vnode_alloc()
278 *vpp = NULL; in fuse_vnode_alloc()
282 *vpp = vp2; in fuse_vnode_alloc()
286 ASSERT_VOP_ELOCKED(*vpp, "fuse_vnode_alloc"); in fuse_vnode_alloc()
296 struct vnode **vpp, in fuse_vnode_get() argument
314 err = fuse_vnode_alloc(mp, td, nodeid, vtyp, vpp); in fuse_vnode_get()
322 fuse_vnode_setparent(*vpp, dvp); in fuse_vnode_get()
329 ASSERT_VOP_LOCKED(*vpp, "fuse_vnode_get"); in fuse_vnode_get()
333 cache_enter_time(dvp, *vpp, cnp, &timeout, NULL); in fuse_vnode_get()
336 VTOFUD(*vpp)->generation = generation; in fuse_vnode_get()
345 VTOFUD(*vpp)->nlookup++; in fuse_vnode_get()