Lines Matching refs:nde

406 	struct tmpfs_dirent *nde;  in tmpfs_alloc_dirent()  local
408 nde = uma_zalloc(tmp->tm_dirent_pool, M_WAITOK); in tmpfs_alloc_dirent()
409 nde->td_node = node; in tmpfs_alloc_dirent()
411 nde->ud.td_name = malloc(len, M_TMPFSNAME, M_WAITOK); in tmpfs_alloc_dirent()
412 tmpfs_dirent_init(nde, name, len); in tmpfs_alloc_dirent()
414 nde->td_namelen = 0; in tmpfs_alloc_dirent()
418 *de = nde; in tmpfs_alloc_dirent()
889 struct tmpfs_dir_duphead *duphead, struct tmpfs_dirent *nde) in tmpfs_dir_attach_dup() argument
898 nde->td_cookie = TMPFS_DIRCOOKIE_DUP_MIN; in tmpfs_dir_attach_dup()
900 nde->td_cookie = de->td_cookie + 1; in tmpfs_dir_attach_dup()
901 MPASS(tmpfs_dirent_dup(nde)); in tmpfs_dir_attach_dup()
902 LIST_INSERT_HEAD(dupindex, nde, uh.td_dup.index_entries); in tmpfs_dir_attach_dup()
903 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries); in tmpfs_dir_attach_dup()
920 nde->td_cookie = TMPFS_DIRCOOKIE_DUP_MIN; in tmpfs_dir_attach_dup()
921 LIST_INSERT_AFTER(pde, nde, uh.td_dup.index_entries); in tmpfs_dir_attach_dup()
922 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries); in tmpfs_dir_attach_dup()
931 nde->td_cookie = TMPFS_DIRCOOKIE_DUP_MAX; in tmpfs_dir_attach_dup()
932 LIST_INSERT_HEAD(dupindex, nde, in tmpfs_dir_attach_dup()
934 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries); in tmpfs_dir_attach_dup()
940 nde->td_cookie = de->td_cookie + 1; in tmpfs_dir_attach_dup()
941 MPASS(tmpfs_dirent_dup(nde)); in tmpfs_dir_attach_dup()
942 MPASS(pde->td_cookie > nde->td_cookie); in tmpfs_dir_attach_dup()
943 MPASS(nde->td_cookie > de->td_cookie); in tmpfs_dir_attach_dup()
944 LIST_INSERT_BEFORE(de, nde, uh.td_dup.index_entries); in tmpfs_dir_attach_dup()
945 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries); in tmpfs_dir_attach_dup()
959 struct tmpfs_dirent *xde, *nde; in tmpfs_dir_attach() local
981 &nde); in tmpfs_dir_attach()
983 memcpy(nde, xde, sizeof(*xde)); in tmpfs_dir_attach()
988 tmpfs_dir_attach_dup(dnode, &xde->ud.td_duphead, nde); in tmpfs_dir_attach()
1046 struct tmpfs_dirent *de, *dde, *nde; in tmpfs_dir_destroy() local
1048 RB_FOREACH_SAFE(de, tmpfs_dir, &dnode->tn_dir.tn_dirhead, nde) { in tmpfs_dir_destroy()