Split up struct nameidata into struct vfs_lookup with the lookup result and intent and the remaining fields for performing an actual lookup. Signed-off-by: Andreas Gruenbacher --- include/linux/namei.h | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) --- a/include/linux/namei.h +++ b/include/linux/namei.h @@ -14,14 +14,14 @@ struct open_intent { enum { MAX_NESTED_LINKS = 8 }; -struct nameidata { - struct dentry *dentry; +struct path { struct vfsmount *mnt; - struct qstr last; + struct dentry *dentry; +}; + +struct vfs_lookup { + struct path path; unsigned int flags; - int last_type; - unsigned depth; - char *saved_names[MAX_NESTED_LINKS + 1]; /* Intent data */ union { @@ -29,9 +29,12 @@ struct nameidata { } intent; }; -struct path { - struct vfsmount *mnt; - struct dentry *dentry; +struct nameidata { + struct vfs_lookup lookup; + struct qstr last; + int last_type; + unsigned depth; + char *saved_names[MAX_NESTED_LINKS + 1]; }; /* - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/