Lines Matching refs:tn_vpstate
332 node->tn_vpstate = 0; in tmpfs_node_ctor()
732 MPASS((node->tn_vpstate & TMPFS_VNODE_ALLOCATING) == 0); in tmpfs_free_node_locked()
966 MPASS((node->tn_vpstate & TMPFS_VNODE_DOOMED) == 0); in tmpfs_alloc_vp()
976 node->tn_vpstate |= TMPFS_VNODE_WRECLAIM; in tmpfs_alloc_vp()
977 while ((node->tn_vpstate & TMPFS_VNODE_WRECLAIM) != 0) { in tmpfs_alloc_vp()
1008 if ((node->tn_vpstate & TMPFS_VNODE_DOOMED) || in tmpfs_alloc_vp()
1020 if (node->tn_vpstate & TMPFS_VNODE_ALLOCATING) { in tmpfs_alloc_vp()
1021 node->tn_vpstate |= TMPFS_VNODE_WANT; in tmpfs_alloc_vp()
1022 error = msleep((caddr_t) &node->tn_vpstate, in tmpfs_alloc_vp()
1028 node->tn_vpstate |= TMPFS_VNODE_ALLOCATING; in tmpfs_alloc_vp()
1108 MPASS(node->tn_vpstate & TMPFS_VNODE_ALLOCATING); in tmpfs_alloc_vp()
1109 node->tn_vpstate &= ~TMPFS_VNODE_ALLOCATING; in tmpfs_alloc_vp()
1112 if (node->tn_vpstate & TMPFS_VNODE_WANT) { in tmpfs_alloc_vp()
1113 node->tn_vpstate &= ~TMPFS_VNODE_WANT; in tmpfs_alloc_vp()
1115 wakeup((caddr_t) &node->tn_vpstate); in tmpfs_alloc_vp()
1149 if ((node->tn_vpstate & TMPFS_VNODE_WRECLAIM) != 0) in tmpfs_free_vp()
1151 node->tn_vpstate &= ~TMPFS_VNODE_WRECLAIM; in tmpfs_free_vp()