]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - include/linux/path.h
firmware/psci: Expose SMCCC version through psci_ops
[mirror_ubuntu-artful-kernel.git] / include / linux / path.h
CommitLineData
c5e725f3
JB
1#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;
3859a271 10} __randomize_layout;
c5e725f3 11
dcf787f3
AV
12extern void path_get(const struct path *);
13extern void path_put(const struct path *);
1d957f9b 14
8df9d1a4
MS
15static inline int path_equal(const struct path *path1, const struct path *path2)
16{
17 return path1->mnt == path2->mnt && path1->dentry == path2->dentry;
18}
19
c5e725f3 20#endif /* _LINUX_PATH_H */