Lines Matching refs:parent_dir
284 struct vfs_dir_entry_t *parent_dir = vfs_path_walk(buf, 0); in vfs_mkdir() local
286 if (parent_dir == NULL) in vfs_mkdir()
301 spin_lock(&parent_dir->lockref.lock); in vfs_mkdir()
312 subdir_dentry->parent = parent_dir; in vfs_mkdir()
315 spin_lock(&parent_dir->dir_inode->lockref.lock); in vfs_mkdir()
316 retval = parent_dir->dir_inode->inode_ops->mkdir(parent_dir->dir_inode, subdir_dentry, 0); in vfs_mkdir()
317 spin_unlock(&parent_dir->dir_inode->lockref.lock); in vfs_mkdir()
321 if (vfs_dentry_put(parent_dir) != 0) // 释放dentry in vfs_mkdir()
322 spin_unlock(&parent_dir->lockref.lock); in vfs_mkdir()
327 struct List *target_list = &parent_dir->subdirs_list; in vfs_mkdir()
334 list_append(&parent_dir->subdirs_list, &subdir_dentry->child_node_list); in vfs_mkdir()
340 list_append(&parent_dir->subdirs_list, &subdir_dentry->child_node_list); in vfs_mkdir()
345 spin_unlock(&parent_dir->lockref.lock); in vfs_mkdir()