Lines Matching defs:path
184 * @path: the (dentry, vfsmount) pair for the new file
188 static struct file *alloc_file(const struct path *path, int flags,
197 file->f_path = *path;
198 file->f_inode = path->dentry->d_inode;
199 file->f_mapping = path->dentry->d_inode->i_mapping;
211 i_readcount_inc(path->dentry->d_inode);
223 struct path path;
226 path.dentry = d_alloc_pseudo(mnt->mnt_sb, &this);
227 if (!path.dentry)
230 d_set_d_op(path.dentry, &anon_ops);
231 path.mnt = mntget(mnt);
232 d_instantiate(path.dentry, inode);
233 file = alloc_file(&path, flags, fops);
236 path_put(&path);