]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Move struct path into its own header
authorJan Blunck <jblunck@suse.de>
Fri, 15 Feb 2008 03:34:31 +0000 (19:34 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 15 Feb 2008 05:13:32 +0000 (21:13 -0800)
Move the definition of struct path into its own header file for further
patches.

Signed-off-by: Jan Blunck <jblunck@suse.de>
Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/namei.h
include/linux/path.h [new file with mode: 0644]

index 307b1b31d37f63918342a3586e82128b6edca1ea..1cd15dad2469fa937543a778c88aac8fcfb4461f 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <linux/dcache.h>
 #include <linux/linkage.h>
+#include <linux/path.h>
 
 struct vfsmount;
 
@@ -29,11 +30,6 @@ struct nameidata {
        } intent;
 };
 
-struct path {
-       struct vfsmount *mnt;
-       struct dentry *dentry;
-};
-
 /*
  * Type of the last component on LOOKUP_PARENT
  */
diff --git a/include/linux/path.h b/include/linux/path.h
new file mode 100644 (file)
index 0000000..cbebdc5
--- /dev/null
@@ -0,0 +1,12 @@
+#ifndef _LINUX_PATH_H
+#define _LINUX_PATH_H
+
+struct dentry;
+struct vfsmount;
+
+struct path {
+       struct vfsmount *mnt;
+       struct dentry *dentry;
+};
+
+#endif  /* _LINUX_PATH_H */