diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-03-11 12:08:24 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-03-14 09:15:28 -0400 |
commit | 73d049a40fc6269189c4e2ba6792cb5dd054883c (patch) | |
tree | a713747cd06926ad89bfa9b36ea13dd20bbc507f /fs/internal.h | |
parent | 5b6ca027d85b7438c84b78a54ccdc2e53f2909cd (diff) |
open-style analog of vfs_path_lookup()
new function: file_open_root(dentry, mnt, name, flags) opens the file
vfs_path_lookup would arrive to.
Note that name can be empty; in that case the usual requirement that
dentry should be a directory is lifted.
open-coded equivalents switched to it, may_open() got down exactly
one caller and became static.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/internal.h')
-rw-r--r-- | fs/internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/internal.h b/fs/internal.h index 6fdbdf2c6047..52abc5287f50 100644 --- a/fs/internal.h +++ b/fs/internal.h | |||
@@ -114,6 +114,8 @@ struct open_flags { | |||
114 | }; | 114 | }; |
115 | extern struct file *do_filp_open(int dfd, const char *pathname, | 115 | extern struct file *do_filp_open(int dfd, const char *pathname, |
116 | const struct open_flags *op, int lookup_flags); | 116 | const struct open_flags *op, int lookup_flags); |
117 | extern struct file *do_file_open_root(struct dentry *, struct vfsmount *, | ||
118 | const char *, const struct open_flags *, int lookup_flags); | ||
117 | 119 | ||
118 | /* | 120 | /* |
119 | * inode.c | 121 | * inode.c |