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 { |
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 | |||||
Al Viro | b2dba1a | 2011-11-23 19:26:23 -0500 | [diff] [blame] | 12 | static inline int mnt_has_parent(struct vfsmount *mnt) |
13 | { | ||||
14 | return mnt != mnt->mnt_parent; | ||||
15 | } |