2007-09-27 14:10:52

by Jan Blunck

[permalink] [raw]
Subject: [patch 04/10] Move struct path into its own header

Move the definition of struct path into its own header file for further
patches.

Signed-off-by: Jan Blunck <[email protected]>
Signed-off-by: Andreas Gruenbacher <[email protected]>
---
include/linux/namei.h | 6 +-----
include/linux/path.h | 12 ++++++++++++
2 files changed, 13 insertions(+), 5 deletions(-)

Index: b/include/linux/namei.h
===================================================================
--- a/include/linux/namei.h
+++ b/include/linux/namei.h
@@ -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
*/
Index: b/include/linux/path.h
===================================================================
--- /dev/null
+++ b/include/linux/path.h
@@ -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 */

--


2007-09-28 18:35:27

by Christoph Hellwig

[permalink] [raw]
Subject: Re: [patch 04/10] Move struct path into its own header

On Thu, Sep 27, 2007 at 04:12:04PM +0200, [email protected] wrote:
> Move the definition of struct path into its own header file for further
> patches.

Ok.