Lines Matching refs:dentry
325 static struct dentry *mqueue_mount(struct file_system_type *fs_type, in mqueue_mount()
425 static int mqueue_create(struct inode *dir, struct dentry *dentry, in mqueue_create() argument
429 struct mq_attr *attr = dentry->d_fsdata; in mqueue_create()
460 d_instantiate(dentry, inode); in mqueue_create()
461 dget(dentry); in mqueue_create()
470 static int mqueue_unlink(struct inode *dir, struct dentry *dentry) in mqueue_unlink() argument
472 struct inode *inode = d_inode(dentry); in mqueue_unlink()
477 dput(dentry); in mqueue_unlink()
743 path->dentry->d_fsdata = attr; in do_create()
757 ret = vfs_create2(path->mnt, dir, path->dentry, mode, true); in do_create()
758 path->dentry->d_fsdata = NULL; in do_create()
773 if (inode_permission2(path->mnt, d_inode(path->dentry), acc)) in do_open()
788 struct dentry *root = mnt->mnt_root; in SYSCALL_DEFINE4()
806 path.dentry = lookup_one_len2(name->name, mnt, root, strlen(name->name)); in SYSCALL_DEFINE4()
807 if (IS_ERR(path.dentry)) { in SYSCALL_DEFINE4()
808 error = PTR_ERR(path.dentry); in SYSCALL_DEFINE4()
814 if (d_really_is_positive(path.dentry)) { /* entry already exists */ in SYSCALL_DEFINE4()
815 audit_inode(name, path.dentry, 0); in SYSCALL_DEFINE4()
832 if (d_really_is_negative(path.dentry)) { in SYSCALL_DEFINE4()
836 audit_inode(name, path.dentry, 0); in SYSCALL_DEFINE4()
863 struct dentry *dentry; in SYSCALL_DEFINE1() local
877 dentry = lookup_one_len2(name->name, mnt, mnt->mnt_root, in SYSCALL_DEFINE1()
879 if (IS_ERR(dentry)) { in SYSCALL_DEFINE1()
880 err = PTR_ERR(dentry); in SYSCALL_DEFINE1()
884 inode = d_inode(dentry); in SYSCALL_DEFINE1()
889 err = vfs_unlink2(mnt, d_inode(dentry->d_parent), dentry, NULL); in SYSCALL_DEFINE1()
891 dput(dentry); in SYSCALL_DEFINE1()