blob: 44e5b6f54b7ebb0d03a62fa30533ce8421220ab2 [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}
Al Viroc7105362011-11-24 18:22:03 -050016
17extern struct mount *__lookup_mnt(struct vfsmount *, struct dentry *, int);