Browse Source

[PATCH] struct path: move struct path from fs/namei.c into include/linux

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 <jsipek@cs.sunysb.edu>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Josef "Jeff" Sipek 18 years ago
parent
commit
346f20ff60
2 changed files with 5 additions and 5 deletions
  1. 0 5
      fs/namei.c
  2. 5 0
      include/linux/namei.h

+ 0 - 5
fs/namei.c

@@ -572,11 +572,6 @@ fail:
 	return PTR_ERR(link);
 	return PTR_ERR(link);
 }
 }
 
 
-struct path {
-	struct vfsmount *mnt;
-	struct dentry *dentry;
-};
-
 static inline void dput_path(struct path *path, struct nameidata *nd)
 static inline void dput_path(struct path *path, struct nameidata *nd)
 {
 {
 	dput(path->dentry);
 	dput(path->dentry);

+ 5 - 0
include/linux/namei.h

@@ -29,6 +29,11 @@ struct nameidata {
 	} intent;
 	} intent;
 };
 };
 
 
+struct path {
+	struct vfsmount *mnt;
+	struct dentry *dentry;
+};
+
 /*
 /*
  * Type of the last component on LOOKUP_PARENT
  * Type of the last component on LOOKUP_PARENT
  */
  */