diff options
Diffstat (limited to 'include/linux/namei.h')
| -rw-r--r-- | include/linux/namei.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/include/linux/namei.h b/include/linux/namei.h index ffc02135c48..d2ef8b34b96 100644 --- a/include/linux/namei.h +++ b/include/linux/namei.h | |||
| @@ -7,12 +7,6 @@ | |||
| 7 | 7 | ||
| 8 | struct vfsmount; | 8 | struct vfsmount; |
| 9 | 9 | ||
| 10 | struct open_intent { | ||
| 11 | int flags; | ||
| 12 | int create_mode; | ||
| 13 | struct file *file; | ||
| 14 | }; | ||
| 15 | |||
| 16 | enum { MAX_NESTED_LINKS = 8 }; | 10 | enum { MAX_NESTED_LINKS = 8 }; |
| 17 | 11 | ||
| 18 | struct nameidata { | 12 | struct nameidata { |
| @@ -25,11 +19,6 @@ struct nameidata { | |||
| 25 | int last_type; | 19 | int last_type; |
| 26 | unsigned depth; | 20 | unsigned depth; |
| 27 | char *saved_names[MAX_NESTED_LINKS + 1]; | 21 | char *saved_names[MAX_NESTED_LINKS + 1]; |
| 28 | |||
| 29 | /* Intent data */ | ||
| 30 | union { | ||
| 31 | struct open_intent open; | ||
| 32 | } intent; | ||
| 33 | }; | 22 | }; |
| 34 | 23 | ||
| 35 | /* | 24 | /* |
| @@ -78,13 +67,10 @@ extern int kern_path(const char *, unsigned, struct path *); | |||
| 78 | 67 | ||
| 79 | extern struct dentry *kern_path_create(int, const char *, struct path *, int); | 68 | extern struct dentry *kern_path_create(int, const char *, struct path *, int); |
| 80 | extern struct dentry *user_path_create(int, const char __user *, struct path *, int); | 69 | extern struct dentry *user_path_create(int, const char __user *, struct path *, int); |
| 81 | extern int kern_path_parent(const char *, struct nameidata *); | 70 | extern struct dentry *kern_path_locked(const char *, struct path *); |
| 82 | extern int vfs_path_lookup(struct dentry *, struct vfsmount *, | 71 | extern int vfs_path_lookup(struct dentry *, struct vfsmount *, |
| 83 | const char *, unsigned int, struct path *); | 72 | const char *, unsigned int, struct path *); |
| 84 | 73 | ||
| 85 | extern struct file *lookup_instantiate_filp(struct nameidata *nd, struct dentry *dentry, | ||
| 86 | int (*open)(struct inode *, struct file *)); | ||
| 87 | |||
| 88 | extern struct dentry *lookup_one_len(const char *, struct dentry *, int); | 74 | extern struct dentry *lookup_one_len(const char *, struct dentry *, int); |
| 89 | 75 | ||
| 90 | extern int follow_down_one(struct path *); | 76 | extern int follow_down_one(struct path *); |
| @@ -94,6 +80,8 @@ extern int follow_up(struct path *); | |||
| 94 | extern struct dentry *lock_rename(struct dentry *, struct dentry *); | 80 | extern struct dentry *lock_rename(struct dentry *, struct dentry *); |
| 95 | extern void unlock_rename(struct dentry *, struct dentry *); | 81 | extern void unlock_rename(struct dentry *, struct dentry *); |
| 96 | 82 | ||
| 83 | extern void nd_jump_link(struct nameidata *nd, struct path *path); | ||
| 84 | |||
| 97 | static inline void nd_set_link(struct nameidata *nd, char *path) | 85 | static inline void nd_set_link(struct nameidata *nd, char *path) |
| 98 | { | 86 | { |
| 99 | nd->saved_names[nd->depth] = path; | 87 | nd->saved_names[nd->depth] = path; |
