Lines Matching refs:tn_dir

603 		RB_INIT(&nnode->tn_dir.tn_dirhead);  in tmpfs_alloc_node()
604 LIST_INIT(&nnode->tn_dir.tn_dupindex); in tmpfs_alloc_node()
607 nnode->tn_dir.tn_parent = (parent == NULL) ? nnode : parent; in tmpfs_alloc_node()
608 nnode->tn_dir.tn_readdir_lastn = 0; in tmpfs_alloc_node()
609 nnode->tn_dir.tn_readdir_lastp = NULL; in tmpfs_alloc_node()
610 nnode->tn_dir.tn_wht_size = 0; in tmpfs_alloc_node()
612 TMPFS_NODE_LOCK(nnode->tn_dir.tn_parent); in tmpfs_alloc_node()
613 nnode->tn_dir.tn_parent->tn_links++; in tmpfs_alloc_node()
614 TMPFS_NODE_UNLOCK(nnode->tn_dir.tn_parent); in tmpfs_alloc_node()
967 if ((node->tn_type == VDIR && node->tn_dir.tn_parent == NULL) || in tmpfs_alloc_vp()
1009 (node->tn_type == VDIR && node->tn_dir.tn_parent == NULL)) { in tmpfs_alloc_vp()
1080 MPASS(node->tn_dir.tn_parent != NULL); in tmpfs_alloc_vp()
1081 if (node->tn_dir.tn_parent == node) in tmpfs_alloc_vp()
1235 de = RB_MIN(tmpfs_dir, &dnode->tn_dir.tn_dirhead); in tmpfs_dir_first()
1256 &dnode->tn_dir.tn_dirhead, dc->tdc_tree); in tmpfs_dir_next()
1272 de = RB_FIND(tmpfs_dir, &dnode->tn_dir.tn_dirhead, &dekey); in tmpfs_dir_xlookup_hash()
1281 struct tmpfs_dir *dirhead = &node->tn_dir.tn_dirhead; in tmpfs_dir_lookup_cookie()
1286 if (cookie == node->tn_dir.tn_readdir_lastn && in tmpfs_dir_lookup_cookie()
1287 (de = node->tn_dir.tn_readdir_lastp) != NULL) { in tmpfs_dir_lookup_cookie()
1295 LIST_FOREACH(de, &node->tn_dir.tn_dupindex, in tmpfs_dir_lookup_cookie()
1386 dupindex = &dnode->tn_dir.tn_dupindex; in tmpfs_dir_attach_dup()
1459 dnode->tn_dir.tn_readdir_lastn = 0; in tmpfs_dir_attach()
1460 dnode->tn_dir.tn_readdir_lastp = NULL; in tmpfs_dir_attach()
1463 xde = RB_INSERT(tmpfs_dir, &dnode->tn_dir.tn_dirhead, de); in tmpfs_dir_attach()
1505 head = &dnode->tn_dir.tn_dirhead; in tmpfs_dir_detach()
1506 dnode->tn_dir.tn_readdir_lastn = 0; in tmpfs_dir_detach()
1507 dnode->tn_dir.tn_readdir_lastp = NULL; in tmpfs_dir_detach()
1541 RB_FOREACH_SAFE(de, tmpfs_dir, &dnode->tn_dir.tn_dirhead, nde) { in tmpfs_dir_destroy()
1542 RB_REMOVE(tmpfs_dir, &dnode->tn_dir.tn_dirhead, de); in tmpfs_dir_destroy()
1613 parent = node->tn_dir.tn_parent; in tmpfs_dir_getdotdotdent()
1785 node->tn_dir.tn_readdir_lastn = off; in tmpfs_dir_getdents()
1786 node->tn_dir.tn_readdir_lastp = de; in tmpfs_dir_getdents()
1805 dnode->tn_dir.tn_wht_size += sizeof(*de); in tmpfs_dir_whiteout_add()
1818 MPASS(dnode->tn_dir.tn_wht_size >= sizeof(*de)); in tmpfs_dir_whiteout_remove()
1819 dnode->tn_dir.tn_wht_size -= sizeof(*de); in tmpfs_dir_whiteout_remove()
1842 dnode->tn_dir.tn_wht_size -= sizeof(*de); in tmpfs_dir_clear_whiteouts()
1847 MPASS(dnode->tn_dir.tn_wht_size == 0); in tmpfs_dir_clear_whiteouts()