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