]>
Commit | Line | Data |
---|---|---|
b2dba1af AV |
1 | #include <linux/mount.h> |
2 | ||
7d6fec45 AV |
3 | struct mount { |
4 | struct vfsmount mnt; | |
5 | }; | |
6 | ||
7 | static inline struct mount *real_mount(struct vfsmount *mnt) | |
8 | { | |
9 | return container_of(mnt, struct mount, mnt); | |
10 | } | |
11 | ||
b2dba1af AV |
12 | static inline int mnt_has_parent(struct vfsmount *mnt) |
13 | { | |
14 | return mnt != mnt->mnt_parent; | |
15 | } | |
c7105365 AV |
16 | |
17 | extern struct mount *__lookup_mnt(struct vfsmount *, struct dentry *, int); |