Skip to content

Commit

Permalink
Move struct path into its own header
Browse files Browse the repository at this point in the history
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]>
Acked-by: Christoph Hellwig <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Jan Blunck authored and Linus Torvalds committed Feb 15, 2008
1 parent 429731b commit c5e725f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
6 changes: 1 addition & 5 deletions include/linux/namei.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include <linux/dcache.h>
#include <linux/linkage.h>
#include <linux/path.h>

struct vfsmount;

Expand All @@ -29,11 +30,6 @@ struct nameidata {
} intent;
};

struct path {
struct vfsmount *mnt;
struct dentry *dentry;
};

/*
* Type of the last component on LOOKUP_PARENT
*/
Expand Down
12 changes: 12 additions & 0 deletions include/linux/path.h
Original file line number Diff line number Diff line change
@@ -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 */

0 comments on commit c5e725f

Please sign in to comment.