Lines Matching refs:path
732 struct path *path, int oflag, umode_t mode, in do_create() argument
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()
761 return dentry_open(path, oflag, cred); in do_create()
765 static struct file *do_open(struct path *path, int oflag) in do_open() argument
773 if (inode_permission2(path->mnt, path->dentry->d_inode, acc)) in do_open()
775 return dentry_open(path, oflag, current_cred()); in do_open()
781 struct path path; in SYSCALL_DEFINE4() local
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()
811 path.mnt = mntget(mnt); in SYSCALL_DEFINE4()
814 if (path.dentry->d_inode) { /* entry already exists */ in SYSCALL_DEFINE4()
815 audit_inode(name, path.dentry, 0); in SYSCALL_DEFINE4()
820 filp = do_open(&path, oflag); in SYSCALL_DEFINE4()
827 &path, oflag, mode, in SYSCALL_DEFINE4()
831 if (!path.dentry->d_inode) { in SYSCALL_DEFINE4()
835 audit_inode(name, path.dentry, 0); in SYSCALL_DEFINE4()
836 filp = do_open(&path, oflag); in SYSCALL_DEFINE4()
844 path_put(&path); in SYSCALL_DEFINE4()