diff options
Diffstat (limited to 'include/linux/namei.h')
| -rw-r--r-- | include/linux/namei.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/linux/namei.h b/include/linux/namei.h index f276d4fa01fc..eba45ea10298 100644 --- a/include/linux/namei.h +++ b/include/linux/namei.h | |||
| @@ -19,7 +19,6 @@ struct nameidata { | |||
| 19 | struct path path; | 19 | struct path path; |
| 20 | struct qstr last; | 20 | struct qstr last; |
| 21 | struct path root; | 21 | struct path root; |
| 22 | struct file *file; | ||
| 23 | struct inode *inode; /* path.dentry.d_inode */ | 22 | struct inode *inode; /* path.dentry.d_inode */ |
| 24 | unsigned int flags; | 23 | unsigned int flags; |
| 25 | unsigned seq; | 24 | unsigned seq; |
| @@ -63,6 +62,10 @@ enum {LAST_NORM, LAST_ROOT, LAST_DOT, LAST_DOTDOT, LAST_BIND}; | |||
| 63 | #define LOOKUP_EXCL 0x0400 | 62 | #define LOOKUP_EXCL 0x0400 |
| 64 | #define LOOKUP_RENAME_TARGET 0x0800 | 63 | #define LOOKUP_RENAME_TARGET 0x0800 |
| 65 | 64 | ||
| 65 | #define LOOKUP_JUMPED 0x1000 | ||
| 66 | #define LOOKUP_ROOT 0x2000 | ||
| 67 | #define LOOKUP_EMPTY 0x4000 | ||
| 68 | |||
| 66 | extern int user_path_at(int, const char __user *, unsigned, struct path *); | 69 | extern int user_path_at(int, const char __user *, unsigned, struct path *); |
| 67 | 70 | ||
| 68 | #define user_path(name, path) user_path_at(AT_FDCWD, name, LOOKUP_FOLLOW, path) | 71 | #define user_path(name, path) user_path_at(AT_FDCWD, name, LOOKUP_FOLLOW, path) |
| @@ -72,7 +75,7 @@ extern int user_path_at(int, const char __user *, unsigned, struct path *); | |||
| 72 | 75 | ||
| 73 | extern int kern_path(const char *, unsigned, struct path *); | 76 | extern int kern_path(const char *, unsigned, struct path *); |
| 74 | 77 | ||
| 75 | extern int path_lookup(const char *, unsigned, struct nameidata *); | 78 | extern int kern_path_parent(const char *, struct nameidata *); |
| 76 | extern int vfs_path_lookup(struct dentry *, struct vfsmount *, | 79 | extern int vfs_path_lookup(struct dentry *, struct vfsmount *, |
| 77 | const char *, unsigned int, struct nameidata *); | 80 | const char *, unsigned int, struct nameidata *); |
| 78 | 81 | ||
| @@ -82,7 +85,7 @@ extern struct file *lookup_instantiate_filp(struct nameidata *nd, struct dentry | |||
| 82 | extern struct dentry *lookup_one_len(const char *, struct dentry *, int); | 85 | extern struct dentry *lookup_one_len(const char *, struct dentry *, int); |
| 83 | 86 | ||
| 84 | extern int follow_down_one(struct path *); | 87 | extern int follow_down_one(struct path *); |
| 85 | extern int follow_down(struct path *, bool); | 88 | extern int follow_down(struct path *); |
| 86 | extern int follow_up(struct path *); | 89 | extern int follow_up(struct path *); |
| 87 | 90 | ||
| 88 | extern struct dentry *lock_rename(struct dentry *, struct dentry *); | 91 | extern struct dentry *lock_rename(struct dentry *, struct dentry *); |
