mount.h 399 字节
Newer Older
1 2
#include <linux/mount.h>

A
Al Viro 已提交
3
struct mount {
A
Al Viro 已提交
4
	struct list_head mnt_hash;
5
	struct mount *mnt_parent;
A
Al Viro 已提交
6 7 8 9 10 11 12 13
	struct vfsmount mnt;
};

static inline struct mount *real_mount(struct vfsmount *mnt)
{
	return container_of(mnt, struct mount, mnt);
}

14
static inline int mnt_has_parent(struct mount *mnt)
15
{
16
	return mnt != mnt->mnt_parent;
17
}
18 19

extern struct mount *__lookup_mnt(struct vfsmount *, struct dentry *, int);