Lines Matching defs:path
46 /* Container for backing file with optional user path */
49 struct path user_path;
57 struct path *backing_file_user_path(struct file *f)
278 * file_init_path - initialize a 'struct file' based on path
281 * @path: the (dentry, vfsmount) pair for the new file
284 static void file_init_path(struct file *file, const struct path *path,
287 file->f_path = *path;
288 file->f_inode = path->dentry->d_inode;
289 file->f_mapping = path->dentry->d_inode->i_mapping;
304 i_readcount_inc(path->dentry->d_inode);
310 * @path: the (dentry, vfsmount) pair for the new file
314 static struct file *alloc_file(const struct path *path, int flags,
321 file_init_path(file, path, fop);
326 struct vfsmount *mnt, struct path *path)
330 path->dentry = d_alloc_pseudo(mnt->mnt_sb, &this);
331 if (!path->dentry)
333 path->mnt = mntget(mnt);
334 d_instantiate(path->dentry, inode);
343 struct path path;
346 ret = alloc_path_pseudo(name, inode, mnt, &path);
350 file = alloc_file(&path, flags, fops);
353 path_put(&path);
365 struct path path;
368 ret = alloc_path_pseudo(name, inode, mnt, &path);
375 path_put(&path);
378 file_init_path(file, &path, fops);