Al Viro | b2dba1a | 2011-11-23 19:26:23 -0500 | [diff] [blame] | 1 | #include <linux/mount.h> |
| 2 | |
Al Viro | 7d6fec4 | 2011-11-23 12:14:10 -0500 | [diff] [blame] | 3 | struct mount { |
Al Viro | 1b8e556 | 2011-11-24 21:01:32 -0500 | [diff] [blame^] | 4 | struct list_head mnt_hash; |
Al Viro | 7d6fec4 | 2011-11-23 12:14:10 -0500 | [diff] [blame] | 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 | |
Al Viro | b2dba1a | 2011-11-23 19:26:23 -0500 | [diff] [blame] | 13 | static inline int mnt_has_parent(struct vfsmount *mnt) |
| 14 | { |
| 15 | return mnt != mnt->mnt_parent; |
| 16 | } |
Al Viro | c710536 | 2011-11-24 18:22:03 -0500 | [diff] [blame] | 17 | |
| 18 | extern struct mount *__lookup_mnt(struct vfsmount *, struct dentry *, int); |