diff --git a/fs/namei.c b/fs/namei.c index db1bca26d88cf07d4758b7ccf02d8334b91e1208..8c2db88bb20dfc29dbb653e45b2f3bee8a56d435 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -572,11 +572,6 @@ static __always_inline int __vfs_follow_link(struct nameidata *nd, const char *l 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 --git a/include/linux/namei.h b/include/linux/namei.h index f5f19606effbd0c84f74007aaf25c145e76d9eef..d39a5a67e97988ff423b0b458161f1409e9edece 100644 --- a/include/linux/namei.h +++ b/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 */