Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/davem/net...
[deliverable/linux.git] / include / linux / path.h
1 #ifndef _LINUX_PATH_H
2 #define _LINUX_PATH_H
3
4 struct dentry;
5 struct vfsmount;
6
7 struct path {
8 struct vfsmount *mnt;
9 struct dentry *dentry;
10 };
11
12 extern void path_get(struct path *);
13 extern void path_get_long(struct path *);
14 extern void path_put(struct path *);
15 extern void path_put_long(struct path *);
16
17 static inline int path_equal(const struct path *path1, const struct path *path2)
18 {
19 return path1->mnt == path2->mnt && path1->dentry == path2->dentry;
20 }
21
22 #endif /* _LINUX_PATH_H */
This page took 0.032344 seconds and 6 git commands to generate.