Lines Matching refs:nnode
182 struct tmpfs_node *nnode;
219 nnode = (struct tmpfs_node *)uma_zalloc_arg(tmp->tm_node_pool, tmp,
223 nnode->tn_type = type;
224 vfs_timestamp(&nnode->tn_atime);
225 nnode->tn_birthtime = nnode->tn_ctime = nnode->tn_mtime =
226 nnode->tn_atime;
227 nnode->tn_uid = uid;
228 nnode->tn_gid = gid;
229 nnode->tn_mode = mode;
230 nnode->tn_id = alloc_unr(tmp->tm_ino_unr);
231 nnode->tn_refcount = 1;
234 switch (nnode->tn_type) {
237 nnode->tn_rdev = rdev;
241 RB_INIT(&nnode->tn_dir.tn_dirhead);
242 LIST_INIT(&nnode->tn_dir.tn_dupindex);
243 MPASS(parent != nnode);
245 nnode->tn_dir.tn_parent = (parent == NULL) ? nnode : parent;
246 nnode->tn_dir.tn_readdir_lastn = 0;
247 nnode->tn_dir.tn_readdir_lastp = NULL;
248 nnode->tn_links++;
249 TMPFS_NODE_LOCK(nnode->tn_dir.tn_parent);
250 nnode->tn_dir.tn_parent->tn_links++;
251 TMPFS_NODE_UNLOCK(nnode->tn_dir.tn_parent);
261 nnode->tn_size = strlen(target);
262 nnode->tn_link = malloc(nnode->tn_size, M_TMPFSNAME,
264 memcpy(nnode->tn_link, target, nnode->tn_size);
268 obj = nnode->tn_reg.tn_aobj =
279 panic("tmpfs_alloc_node: type %p %d", nnode,
280 (int)nnode->tn_type);
284 LIST_INSERT_HEAD(&tmp->tm_nodes_used, nnode, tn_entries);
285 nnode->tn_attached = true;
290 *node = nnode;