Lines Matching refs:nde

438 	struct tmpfs_dirent *nde;  in tmpfs_alloc_dirent()  local
440 nde = uma_zalloc(tmp->tm_dirent_pool, M_WAITOK); in tmpfs_alloc_dirent()
441 nde->td_node = node; in tmpfs_alloc_dirent()
443 nde->ud.td_name = malloc(len, M_TMPFSNAME, M_WAITOK); in tmpfs_alloc_dirent()
444 tmpfs_dirent_init(nde, name, len); in tmpfs_alloc_dirent()
446 nde->td_namelen = 0; in tmpfs_alloc_dirent()
450 *de = nde; in tmpfs_alloc_dirent()
932 struct tmpfs_dir_duphead *duphead, struct tmpfs_dirent *nde) in tmpfs_dir_attach_dup() argument
941 nde->td_cookie = TMPFS_DIRCOOKIE_DUP_MIN; in tmpfs_dir_attach_dup()
943 nde->td_cookie = de->td_cookie + 1; in tmpfs_dir_attach_dup()
944 MPASS(tmpfs_dirent_dup(nde)); in tmpfs_dir_attach_dup()
945 LIST_INSERT_HEAD(dupindex, nde, uh.td_dup.index_entries); in tmpfs_dir_attach_dup()
946 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries); in tmpfs_dir_attach_dup()
963 nde->td_cookie = TMPFS_DIRCOOKIE_DUP_MIN; in tmpfs_dir_attach_dup()
964 LIST_INSERT_AFTER(pde, nde, uh.td_dup.index_entries); in tmpfs_dir_attach_dup()
965 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries); in tmpfs_dir_attach_dup()
974 nde->td_cookie = TMPFS_DIRCOOKIE_DUP_MAX; in tmpfs_dir_attach_dup()
975 LIST_INSERT_HEAD(dupindex, nde, in tmpfs_dir_attach_dup()
977 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries); in tmpfs_dir_attach_dup()
983 nde->td_cookie = de->td_cookie + 1; in tmpfs_dir_attach_dup()
984 MPASS(tmpfs_dirent_dup(nde)); in tmpfs_dir_attach_dup()
985 MPASS(pde->td_cookie > nde->td_cookie); in tmpfs_dir_attach_dup()
986 MPASS(nde->td_cookie > de->td_cookie); in tmpfs_dir_attach_dup()
987 LIST_INSERT_BEFORE(de, nde, uh.td_dup.index_entries); in tmpfs_dir_attach_dup()
988 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries); in tmpfs_dir_attach_dup()
1002 struct tmpfs_dirent *xde, *nde; in tmpfs_dir_attach() local
1024 &nde); in tmpfs_dir_attach()
1026 memcpy(nde, xde, sizeof(*xde)); in tmpfs_dir_attach()
1031 tmpfs_dir_attach_dup(dnode, &xde->ud.td_duphead, nde); in tmpfs_dir_attach()
1090 struct tmpfs_dirent *de, *dde, *nde; in tmpfs_dir_destroy() local
1092 RB_FOREACH_SAFE(de, tmpfs_dir, &dnode->tn_dir.tn_dirhead, nde) { in tmpfs_dir_destroy()
1202 struct tmpfs_dirent *de, *nde; in tmpfs_dir_getdents() local
1314 nde = tmpfs_dir_next(node, &dc); in tmpfs_dir_getdents()
1315 d.d_off = tmpfs_dirent_cookie(nde); in tmpfs_dir_getdents()
1324 de = nde; in tmpfs_dir_getdents()