Home
last modified time | relevance | path

Searched refs:tn_dir (Results 1 – 3 of 3) sorted by relevance

/freebsd/sys/fs/tmpfs/
H A Dtmpfs_subr.c603 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()
[all …]
H A Dtmpfs.h263 struct tn_dir { struct
304 } tn_dir; member
334 #define tn_dir tn_spec.tn_dir macro
545 MPASS((node)->tn_dir.tn_wht_size % sizeof(struct tmpfs_dirent) == 0); \
546 MPASS((node)->tn_dir.tn_wht_size <= (node)->tn_size); \
H A Dtmpfs_vnops.c105 dnode->tn_dir.tn_parent == dnode, in tmpfs_lookup1()
109 if (dnode->tn_dir.tn_parent == NULL) { in tmpfs_lookup1()
115 pnode = dnode->tn_dir.tn_parent; in tmpfs_lookup1()
1084 tnode->tn_size > tnode->tn_dir.tn_wht_size)) { in tmpfs_rename()
1151 while (n != n->tn_dir.tn_parent) { in tmpfs_rename()
1162 parent = n->tn_dir.tn_parent; in tmpfs_rename()
1169 if (parent->tn_dir.tn_parent == NULL) { in tmpfs_rename()
1188 de->td_node->tn_dir.tn_parent = tdnode; in tmpfs_rename()
1343 node->tn_size > node->tn_dir.tn_wht_size)) { in tmpfs_rmdir()
1357 MPASS(node->tn_dir in tmpfs_rmdir()
[all...]