From: Josef "Jeff" Sipek Moved struct path from fs/namei.c to include/linux/namei.h. This allows many places in the VFS, as well as any stackable filesystem to easily keep track of dentry-vfsmount pairs. Signed-off-by: Josef "Jeff" Sipek Cc: Al Viro Signed-off-by: Andrew Morton --- fs/namei.c | 5 ----- include/linux/namei.h | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff -puN fs/namei.c~struct-path-move-struct-path-from-fs-nameic-into fs/namei.c --- a/fs/namei.c~struct-path-move-struct-path-from-fs-nameic-into +++ a/fs/namei.c @@ -572,11 +572,6 @@ fail: return PTR_ERR(link); } -struct path { - struct vfsmount *mnt; - struct dentry *dentry; -}; - static inline void dput_path(struct path *path, struct nameidata *nd) { dput(path->dentry); diff -puN include/linux/namei.h~struct-path-move-struct-path-from-fs-nameic-into include/linux/namei.h --- a/include/linux/namei.h~struct-path-move-struct-path-from-fs-nameic-into +++ a/include/linux/namei.h @@ -29,6 +29,11 @@ struct nameidata { } intent; }; +struct path { + struct vfsmount *mnt; + struct dentry *dentry; +}; + /* * Type of the last component on LOOKUP_PARENT */ _