lkml.org 
[lkml]   [2007]   [Aug]   [8]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateWed, 08 Aug 2007 19:16:23 +0200
FromAndreas Gruenbacher <>
Subject[RFC 01/10] Split up struct nameidata
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 <ag@bestbits.at>

---
 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/

\
 
 \ /
  Last update: 2007-08-08 19:21    [from the cache]
©2003-2008