Lines Matching full:vp

60 #define	NULL_NHASH(vp) (&null_node_hashtbl[vfs_hash_index(vp) & null_hash_mask])  argument
107 struct vnode *vp; in null_hashget_locked() local
128 vp = NULLTOV(a); in null_hashget_locked()
129 VNPASS(!VN_IS_DOOMED(vp), vp); in null_hashget_locked()
130 if (vp->v_mount != mp) in null_hashget_locked()
132 vref(vp); in null_hashget_locked()
133 return (vp); in null_hashget_locked()
143 struct vnode *vp; in null_hashget() local
158 vp = NULLTOV(a); in null_hashget()
159 VNPASS(!VN_IS_DOOMED(vp), vp); in null_hashget()
160 if (vp->v_mount != mp) in null_hashget()
162 vs = vget_prep_smr(vp); in null_hashget()
164 VNPASS(vs != VGET_NONE, vp); in null_hashget()
165 vget_finish_ref(vp, vs); in null_hashget()
166 return (vp); in null_hashget()
196 null_destroy_proto(struct vnode *vp, void *xp) in null_destroy_proto() argument
199 lockmgr(&vp->v_lock, LK_EXCLUSIVE, NULL); in null_destroy_proto()
200 VI_LOCK(vp); in null_destroy_proto()
201 vp->v_data = NULL; in null_destroy_proto()
202 vp->v_vnlock = &vp->v_lock; in null_destroy_proto()
203 vp->v_op = &dead_vnodeops; in null_destroy_proto()
204 VI_UNLOCK(vp); in null_destroy_proto()
205 vgone(vp); in null_destroy_proto()
206 vput(vp); in null_destroy_proto()
212 * Vp is the alias vnode, lowervp is the lower vnode.
222 struct vnode *vp; in null_nodeget() local
245 &null_vnodeops, &vp); in null_nodeget()
252 VNPASS(vp->v_object == NULL, vp); in null_nodeget()
253 VNPASS((vn_irflag_read(vp) & VIRF_PGREAD) == 0, vp); in null_nodeget()
256 xp->null_vnode = vp; in null_nodeget()
259 vp->v_type = lowervp->v_type; in null_nodeget()
260 vp->v_data = xp; in null_nodeget()
261 vp->v_vnlock = lowervp->v_vnlock; in null_nodeget()
266 null_destroy_proto(vp, xp); in null_nodeget()
277 vp->v_object = lowervp->v_object; in null_nodeget()
278 vn_irflag_set(vp, VIRF_PGREAD); in null_nodeget()
281 vn_irflag_set(vp, VIRF_INOTIFY); in null_nodeget()
283 vn_irflag_set(vp, VIRF_INOTIFY_PARENT); in null_nodeget()
285 vp->v_vflag |= VV_ROOT; in null_nodeget()
287 error = insmntque1(vp, mp); in null_nodeget()
291 vp->v_object = NULL; in null_nodeget()
292 null_destroy_proto(vp, xp); in null_nodeget()
296 vn_set_state(vp, VSTATE_CONSTRUCTED); in null_nodeget()
299 *vpp = vp; in null_nodeget()
321 null_checkvp(struct vnode *vp, char *fil, int lno) in null_checkvp() argument
323 struct null_node *a = VTONULL(vp); in null_checkvp()
330 if (vp->v_op != null_vnodeop_p) { in null_checkvp()
337 panic("null_checkvp %p", vp); in null_checkvp()
341 panic ("null with unref'ed lowervp, vp %p lvp %p", in null_checkvp()
342 vp, a->null_lowervp); in null_checkvp()