blob: 831e7c86835beccaf44ffb8ebec4053a59c6d941 [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 {
Al Viro1b8e5562011-11-24 21:01:32 -05004 struct list_head mnt_hash;
Al Viro7d6fec42011-11-23 12:14:10 -05005 struct vfsmount mnt;
6};
7
8static inline struct mount *real_mount(struct vfsmount *mnt)
9{
10 return container_of(mnt, struct mount, mnt);
11}
12
Al Virob2dba1a2011-11-23 19:26:23 -050013static inline int mnt_has_parent(struct vfsmount *mnt)
14{
15 return mnt != mnt->mnt_parent;
16}
Al Viroc7105362011-11-24 18:22:03 -050017
18extern struct mount *__lookup_mnt(struct vfsmount *, struct dentry *, int);