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 <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>
This commit is contained in:
parent
429731b155
commit
c5e725f33b
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include <linux/dcache.h>
|
#include <linux/dcache.h>
|
||||||
#include <linux/linkage.h>
|
#include <linux/linkage.h>
|
||||||
|
#include <linux/path.h>
|
||||||
|
|
||||||
struct vfsmount;
|
struct vfsmount;
|
||||||
|
|
||||||
@ -29,11 +30,6 @@ 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
|
||||||
*/
|
*/
|
||||||
|
12
include/linux/path.h
Normal file
12
include/linux/path.h
Normal file
@ -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 */
|
Loading…
Reference in New Issue
Block a user