Lines Matching refs:dnode

1172 	struct tmpfs_node *dnode;  in tmpfs_alloc_file()  local
1179 dnode = VP_TO_TMPFS_DIR(dvp); in tmpfs_alloc_file()
1188 MPASS(dnode->tn_links <= TMPFS_LINK_MAX); in tmpfs_alloc_file()
1189 if (dnode->tn_links == TMPFS_LINK_MAX) { in tmpfs_alloc_file()
1193 parent = dnode; in tmpfs_alloc_file()
1200 cnp->cn_cred->cr_uid, dnode->tn_gid, vap->va_mode, parent, in tmpfs_alloc_file()
1231 tmpfs_dir_first(struct tmpfs_node *dnode, struct tmpfs_dir_cursor *dc) in tmpfs_dir_first() argument
1235 de = RB_MIN(tmpfs_dir, &dnode->tn_dir.tn_dirhead); in tmpfs_dir_first()
1245 tmpfs_dir_next(struct tmpfs_node *dnode, struct tmpfs_dir_cursor *dc) in tmpfs_dir_next() argument
1256 &dnode->tn_dir.tn_dirhead, dc->tdc_tree); in tmpfs_dir_next()
1267 tmpfs_dir_xlookup_hash(struct tmpfs_node *dnode, uint32_t hash) in tmpfs_dir_xlookup_hash() argument
1272 de = RB_FIND(tmpfs_dir, &dnode->tn_dir.tn_dirhead, &dekey); in tmpfs_dir_xlookup_hash()
1380 tmpfs_dir_attach_dup(struct tmpfs_node *dnode, in tmpfs_dir_attach_dup() argument
1386 dupindex = &dnode->tn_dir.tn_dupindex; in tmpfs_dir_attach_dup()
1450 struct tmpfs_node *dnode; in tmpfs_dir_attach() local
1458 dnode = VP_TO_TMPFS_DIR(vp); in tmpfs_dir_attach()
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()
1465 tmpfs_dir_attach_dup(dnode, &xde->ud.td_duphead, de); in tmpfs_dir_attach()
1480 tmpfs_dir_attach_dup(dnode, &xde->ud.td_duphead, nde); in tmpfs_dir_attach()
1481 tmpfs_dir_attach_dup(dnode, &xde->ud.td_duphead, de); in tmpfs_dir_attach()
1483 dnode->tn_size += sizeof(struct tmpfs_dirent); in tmpfs_dir_attach()
1484 dnode->tn_status |= TMPFS_NODE_CHANGED | TMPFS_NODE_MODIFIED; in tmpfs_dir_attach()
1485 dnode->tn_accessed = true; in tmpfs_dir_attach()
1499 struct tmpfs_node *dnode; in tmpfs_dir_detach() local
1504 dnode = VP_TO_TMPFS_DIR(vp); in tmpfs_dir_detach()
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()
1512 xde = tmpfs_dir_xlookup_hash(dnode, de->td_hash); in tmpfs_dir_detach()
1530 dnode->tn_size -= sizeof(struct tmpfs_dirent); in tmpfs_dir_detach()
1531 dnode->tn_status |= TMPFS_NODE_CHANGED | TMPFS_NODE_MODIFIED; in tmpfs_dir_detach()
1532 dnode->tn_accessed = true; in tmpfs_dir_detach()
1537 tmpfs_dir_destroy(struct tmpfs_mount *tmp, struct tmpfs_node *dnode) in tmpfs_dir_destroy() argument
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()
1796 struct tmpfs_node *dnode; in tmpfs_dir_whiteout_add() local
1803 dnode = VP_TO_TMPFS_DIR(dvp); in tmpfs_dir_whiteout_add()
1805 dnode->tn_dir.tn_wht_size += sizeof(*de); in tmpfs_dir_whiteout_add()
1813 struct tmpfs_node *dnode; in tmpfs_dir_whiteout_remove() local
1815 dnode = VP_TO_TMPFS_DIR(dvp); in tmpfs_dir_whiteout_remove()
1816 de = tmpfs_dir_lookup(dnode, NULL, cnp); in tmpfs_dir_whiteout_remove()
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()
1835 struct tmpfs_node *dnode; in tmpfs_dir_clear_whiteouts() local
1837 dnode = VP_TO_TMPFS_DIR(dvp); in tmpfs_dir_clear_whiteouts()
1839 while ((de = tmpfs_dir_first(dnode, &dc)) != NULL) { in tmpfs_dir_clear_whiteouts()
1842 dnode->tn_dir.tn_wht_size -= sizeof(*de); in tmpfs_dir_clear_whiteouts()
1846 MPASS(dnode->tn_size == 0); in tmpfs_dir_clear_whiteouts()
1847 MPASS(dnode->tn_dir.tn_wht_size == 0); in tmpfs_dir_clear_whiteouts()