Lines Matching refs:dentry
14 static inline void __release_dentry(struct vfs_dir_entry_t *dentry) in __release_dentry() argument
16 kfree(dentry->name); in __release_dentry()
17 kfree(dentry); in __release_dentry()
54 struct vfs_dir_entry_t *dentry = file_ptr->dEntry; in rootfs_readdir() local
55 struct List *list = &dentry->subdirs_list; in rootfs_readdir()
60 if (list == &dentry->subdirs_list) // 找完了 in rootfs_readdir()
127 struct vfs_dir_entry_t *dentry = vfs_alloc_dentry(strlen(name) + 1); in rootfs_add_dir() local
128 strcpy(dentry->name, name); in rootfs_add_dir()
129 dentry->name_length = strlen(name); in rootfs_add_dir()
130 dentry->parent = rootfs_sb.root; in rootfs_add_dir()
131 list_append(&rootfs_sb.root->subdirs_list, &dentry->child_node_list); in rootfs_add_dir()
145 struct vfs_dir_entry_t *dentry = rootfs_sb.root; in rootfs_init() local
146 strncpy(dentry->name, "/", 2); in rootfs_init()
147 dentry->name_length = 1; in rootfs_init()
148 dentry->parent = dentry; in rootfs_init()
151 dentry->dir_inode = vfs_alloc_inode(); in rootfs_init()
152 dentry->dir_inode->sb = &rootfs_sb; in rootfs_init()
153 dentry->dir_inode->inode_ops = &rootfs_inode_ops; in rootfs_init()
154 dentry->dir_inode->file_ops = &rootfs_file_ops; in rootfs_init()
155 dentry->dir_inode->attribute = VFS_IF_DIR; in rootfs_init()
220 __release_dentry(mp->dentry); in rootfs_umount()