blob: 541daf568f63561a1411c15a4379a48f438f4d69 [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 Viro676da582011-11-24 21:47:05 -050013static inline int mnt_has_parent(struct mount *mnt)
Al Virob2dba1a2011-11-23 19:26:23 -050014{
Al Viro676da582011-11-24 21:47:05 -050015 return &mnt->mnt != mnt->mnt.mnt_parent;
Al Virob2dba1a2011-11-23 19:26:23 -050016}
Al Viroc7105362011-11-24 18:22:03 -050017
18extern struct mount *__lookup_mnt(struct vfsmount *, struct dentry *, int);