2011-11-23 19:26:23 -05:00
|
|
|
#include <linux/mount.h>
|
|
|
|
|
2011-11-23 12:14:10 -05:00
|
|
|
struct mount {
|
2011-11-24 21:01:32 -05:00
|
|
|
struct list_head mnt_hash;
|
2011-11-24 22:05:19 -05:00
|
|
|
struct vfsmount *mnt_parent;
|
2011-11-23 12:14:10 -05:00
|
|
|
struct vfsmount mnt;
|
|
|
|
};
|
|
|
|
|
|
|
|
static inline struct mount *real_mount(struct vfsmount *mnt)
|
|
|
|
{
|
|
|
|
return container_of(mnt, struct mount, mnt);
|
|
|
|
}
|
|
|
|
|
2011-11-24 21:47:05 -05:00
|
|
|
static inline int mnt_has_parent(struct mount *mnt)
|
2011-11-23 19:26:23 -05:00
|
|
|
{
|
2011-11-24 22:05:19 -05:00
|
|
|
return &mnt->mnt != mnt->mnt_parent;
|
2011-11-23 19:26:23 -05:00
|
|
|
}
|
2011-11-24 18:22:03 -05:00
|
|
|
|
|
|
|
extern struct mount *__lookup_mnt(struct vfsmount *, struct dentry *, int);
|