blob: a581e8c0653302a4bf5bf5494731af6cad404b2a [file] [log] [blame]
Jan Blunckc5e725f2008-02-14 19:34:31 -08001#ifndef _LINUX_PATH_H
2#define _LINUX_PATH_H
3
4struct dentry;
5struct vfsmount;
6
7struct path {
8 struct vfsmount *mnt;
9 struct dentry *dentry;
10};
11
Jan Blunck5dd784d02008-02-14 19:34:38 -080012extern void path_get(struct path *);
Nick Pigginb3e19d92011-01-07 17:50:11 +110013extern void path_get_long(struct path *);
Jan Blunck1d957f92008-02-14 19:34:35 -080014extern void path_put(struct path *);
Nick Pigginb3e19d92011-01-07 17:50:11 +110015extern void path_put_long(struct path *);
Jan Blunck1d957f92008-02-14 19:34:35 -080016
Miklos Szeredi8df9d1a2010-08-10 11:41:41 +020017static 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
Jan Blunckc5e725f2008-02-14 19:34:31 -080022#endif /* _LINUX_PATH_H */