switch file_open_root() to struct path
... and provide file_open_root_mnt(), using the root of given mount. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
4f0ed93fb9
commit
ffb37ca3bd
11 changed files with 29 additions and 16 deletions
|
|
@ -2632,8 +2632,14 @@ extern long do_sys_open(int dfd, const char __user *filename, int flags,
|
|||
umode_t mode);
|
||||
extern struct file *file_open_name(struct filename *, int, umode_t);
|
||||
extern struct file *filp_open(const char *, int, umode_t);
|
||||
extern struct file *file_open_root(struct dentry *, struct vfsmount *,
|
||||
extern struct file *file_open_root(const struct path *,
|
||||
const char *, int, umode_t);
|
||||
static inline struct file *file_open_root_mnt(struct vfsmount *mnt,
|
||||
const char *name, int flags, umode_t mode)
|
||||
{
|
||||
return file_open_root(&(struct path){.mnt = mnt, .dentry = mnt->mnt_root},
|
||||
name, flags, mode);
|
||||
}
|
||||
extern struct file * dentry_open(const struct path *, int, const struct cred *);
|
||||
extern struct file * open_with_fake_path(const struct path *, int,
|
||||
struct inode*, const struct cred *);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue