This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
2011-11-24 00:26:23 +00:00
|
|
|
#include <linux/mount.h>
|
|
|
|
|
2011-11-23 17:14:10 +00:00
|
|
|
struct mount {
|
|
|
|
struct vfsmount mnt;
|
|
|
|
};
|
|
|
|
|
|
|
|
static inline struct mount *real_mount(struct vfsmount *mnt)
|
|
|
|
{
|
|
|
|
return container_of(mnt, struct mount, mnt);
|
|
|
|
}
|
|
|
|
|
2011-11-24 00:26:23 +00:00
|
|
|
static inline int mnt_has_parent(struct vfsmount *mnt)
|
|
|
|
{
|
|
|
|
return mnt != mnt->mnt_parent;
|
|
|
|
}
|