blob: 47da8163e1f49741fab681bd7e2d6e9b20eb9a44 [file] [log] [blame]
Al Virob2dba1a2011-11-23 19:26:23 -05001#include <linux/mount.h>
2
Al Viro7d6fec42011-11-23 12:14:10 -05003struct mount {
4 struct vfsmount mnt;
5};
6
7static inline struct mount *real_mount(struct vfsmount *mnt)
8{
9 return container_of(mnt, struct mount, mnt);
10}
11
Al Virob2dba1a2011-11-23 19:26:23 -050012static inline int mnt_has_parent(struct vfsmount *mnt)
13{
14 return mnt != mnt->mnt_parent;
15}