提交 c5e725f3 编写于 作者: J Jan Blunck 提交者: Linus Torvalds

Move struct path into its own header

Move the definition of struct path into its own header file for further
patches.
Signed-off-by: NJan Blunck <jblunck@suse.de>
Signed-off-by: NAndreas Gruenbacher <agruen@suse.de>
Acked-by: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 429731b1
......@@ -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
*/
......
#ifndef _LINUX_PATH_H
#define _LINUX_PATH_H
struct dentry;
struct vfsmount;
struct path {
struct vfsmount *mnt;
struct dentry *dentry;
};
#endif /* _LINUX_PATH_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册