Lines Matching refs:dentry
458 rt_mutex_init(&file->vnode->lock, file->dentry->pathname, RT_IPC_FLAG_PRIO); in dfs_tmpfs_open()
464 static int dfs_tmpfs_stat(struct dfs_dentry *dentry, struct stat *st) in dfs_tmpfs_stat() argument
470 superblock = (struct tmpfs_sb *)dentry->mnt->data; in dfs_tmpfs_stat()
471 d_file = dfs_tmpfs_lookup(superblock, dentry->pathname, &size); in dfs_tmpfs_stat()
476 st->st_dev = (dev_t)(size_t)(dentry->mnt->dev_id); in dfs_tmpfs_stat()
477 st->st_ino = (ino_t)dfs_dentry_full_path_crc32(dentry); in dfs_tmpfs_stat()
554 static int dfs_tmpfs_unlink(struct dfs_dentry *dentry) in dfs_tmpfs_unlink() argument
560 superblock = (struct tmpfs_sb *)dentry->mnt->data; in dfs_tmpfs_unlink()
563 d_file = dfs_tmpfs_lookup(superblock, dentry->pathname, &size); in dfs_tmpfs_unlink()
571 if (rt_atomic_load(&(dentry->ref_count)) == 1) in dfs_tmpfs_unlink()
640 static struct dfs_vnode *_dfs_tmpfs_lookup(struct dfs_dentry *dentry) in _dfs_tmpfs_lookup() argument
647 if (dentry == NULL || dentry->mnt == NULL || dentry->mnt->data == NULL) in _dfs_tmpfs_lookup()
652 superblock = (struct tmpfs_sb *)dentry->mnt->data; in _dfs_tmpfs_lookup()
654 d_file = dfs_tmpfs_lookup(superblock, dentry->pathname, &size); in _dfs_tmpfs_lookup()
670 vnode->aspace = dfs_aspace_create(dentry, vnode, &dfs_tmp_aspace_ops); in _dfs_tmpfs_lookup()
674 vnode->mnt = dentry->mnt; in _dfs_tmpfs_lookup()
683 static struct dfs_vnode *dfs_tmpfs_create_vnode(struct dfs_dentry *dentry, int type, mode_t mode) in dfs_tmpfs_create_vnode() argument
692 if (dentry == NULL || dentry->mnt == NULL || dentry->mnt->data == NULL) in dfs_tmpfs_create_vnode()
697 superblock = (struct tmpfs_sb *)dentry->mnt->data; in dfs_tmpfs_create_vnode()
710 _path_separate(dentry->pathname, parent_path, file_name); in dfs_tmpfs_create_vnode()
757 vnode->aspace = dfs_aspace_create(dentry, vnode, &dfs_tmp_aspace_ops); in dfs_tmpfs_create_vnode()
764 vnode->mnt = dentry->mnt; in dfs_tmpfs_create_vnode()