Lines Matching refs:vpp
198 struct vnode **vpp) in fuse_vnode_alloc() argument
209 *vpp = NULL; in fuse_vnode_alloc()
210 err = vfs_hash_get(mp, fuse_vnode_hash(nodeid), LK_EXCLUSIVE, td, vpp, in fuse_vnode_alloc()
215 if (*vpp) { in fuse_vnode_alloc()
216 if ((*vpp)->v_type == vtyp) { in fuse_vnode_alloc()
218 MPASS((*vpp)->v_data != NULL); in fuse_vnode_alloc()
219 MPASS(VTOFUD(*vpp)->nid == nodeid); in fuse_vnode_alloc()
231 SDT_PROBE3(fusefs, , node, stale_vnode, *vpp, vtyp, in fuse_vnode_alloc()
233 fuse_internal_vnode_disappear(*vpp); in fuse_vnode_alloc()
234 vgone(*vpp); in fuse_vnode_alloc()
235 lockmgr((*vpp)->v_vnlock, LK_RELEASE, NULL); in fuse_vnode_alloc()
241 err = getnewvnode("fuse", mp, &fuse_fifoops, vpp); in fuse_vnode_alloc()
244 err = getnewvnode("fuse", mp, &fuse_vnops, vpp); in fuse_vnode_alloc()
251 lockmgr((*vpp)->v_vnlock, LK_EXCLUSIVE, NULL); in fuse_vnode_alloc()
252 fuse_vnode_init(*vpp, fvdat, nodeid, vtyp); in fuse_vnode_alloc()
253 err = insmntque(*vpp, mp); in fuse_vnode_alloc()
254 ASSERT_VOP_ELOCKED(*vpp, "fuse_vnode_alloc"); in fuse_vnode_alloc()
256 lockmgr((*vpp)->v_vnlock, LK_RELEASE, NULL); in fuse_vnode_alloc()
258 *vpp = NULL; in fuse_vnode_alloc()
263 VN_LOCK_ASHARE(*vpp); in fuse_vnode_alloc()
265 err = vfs_hash_insert(*vpp, fuse_vnode_hash(nodeid), LK_EXCLUSIVE, in fuse_vnode_alloc()
268 lockmgr((*vpp)->v_vnlock, LK_RELEASE, NULL); in fuse_vnode_alloc()
270 *vpp = NULL; in fuse_vnode_alloc()
274 *vpp = vp2; in fuse_vnode_alloc()
278 ASSERT_VOP_ELOCKED(*vpp, "fuse_vnode_alloc"); in fuse_vnode_alloc()
288 struct vnode **vpp, in fuse_vnode_get() argument
300 err = fuse_vnode_alloc(mp, td, nodeid, vtyp, vpp); in fuse_vnode_get()
308 fuse_vnode_setparent(*vpp, dvp); in fuse_vnode_get()
315 ASSERT_VOP_LOCKED(*vpp, "fuse_vnode_get"); in fuse_vnode_get()
319 cache_enter_time(dvp, *vpp, cnp, &timeout, NULL); in fuse_vnode_get()
322 VTOFUD(*vpp)->generation = generation; in fuse_vnode_get()
331 VTOFUD(*vpp)->nlookup++; in fuse_vnode_get()