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