Lines Matching refs:dentry
326 static struct dentry *mqueue_mount(struct file_system_type *fs_type, in mqueue_mount()
416 static int mqueue_create(struct inode *dir, struct dentry *dentry, in mqueue_create() argument
420 struct mq_attr *attr = dentry->d_fsdata; in mqueue_create()
451 d_instantiate(dentry, inode); in mqueue_create()
452 dget(dentry); in mqueue_create()
461 static int mqueue_unlink(struct inode *dir, struct dentry *dentry) in mqueue_unlink() argument
463 struct inode *inode = d_inode(dentry); in mqueue_unlink()
468 dput(dentry); in mqueue_unlink()
734 path->dentry->d_fsdata = attr; in do_create()
748 ret = vfs_create2(path->mnt, dir, path->dentry, mode, true); in do_create()
749 path->dentry->d_fsdata = NULL; in do_create()
764 if (inode_permission2(path->mnt, d_inode(path->dentry), acc)) in do_open()
779 struct dentry *root = mnt->mnt_root; in SYSCALL_DEFINE4()
797 path.dentry = lookup_one_len2(name->name, mnt, root, strlen(name->name)); in SYSCALL_DEFINE4()
798 if (IS_ERR(path.dentry)) { in SYSCALL_DEFINE4()
799 error = PTR_ERR(path.dentry); in SYSCALL_DEFINE4()
805 if (d_really_is_positive(path.dentry)) { /* entry already exists */ in SYSCALL_DEFINE4()
806 audit_inode(name, path.dentry, 0); in SYSCALL_DEFINE4()
823 if (d_really_is_negative(path.dentry)) { in SYSCALL_DEFINE4()
827 audit_inode(name, path.dentry, 0); in SYSCALL_DEFINE4()
854 struct dentry *dentry; in SYSCALL_DEFINE1() local
868 dentry = lookup_one_len2(name->name, mnt, mnt->mnt_root, in SYSCALL_DEFINE1()
870 if (IS_ERR(dentry)) { in SYSCALL_DEFINE1()
871 err = PTR_ERR(dentry); in SYSCALL_DEFINE1()
875 inode = d_inode(dentry); in SYSCALL_DEFINE1()
880 err = vfs_unlink2(mnt, d_inode(dentry->d_parent), dentry, NULL); in SYSCALL_DEFINE1()
882 dput(dentry); in SYSCALL_DEFINE1()