Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
c5e725f3 JB |
2 | #ifndef _LINUX_PATH_H |
3 | #define _LINUX_PATH_H | |
4 | ||
5 | struct dentry; | |
6 | struct vfsmount; | |
7 | ||
8 | struct path { | |
9 | struct vfsmount *mnt; | |
10 | struct dentry *dentry; | |
3859a271 | 11 | } __randomize_layout; |
c5e725f3 | 12 | |
dcf787f3 AV |
13 | extern void path_get(const struct path *); |
14 | extern void path_put(const struct path *); | |
1d957f9b | 15 | |
8df9d1a4 MS |
16 | static inline int path_equal(const struct path *path1, const struct path *path2) |
17 | { | |
18 | return path1->mnt == path2->mnt && path1->dentry == path2->dentry; | |
19 | } | |
20 | ||
c5e725f3 | 21 | #endif /* _LINUX_PATH_H */ |