vfs: now it can be done - make mnt_parent point to struct mount
[deliverable/linux.git] / fs / mount.h
1 #include <linux/mount.h>
2
3 struct mount {
4 struct list_head mnt_hash;
5 struct mount *mnt_parent;
6 struct vfsmount mnt;
7 };
8
9 static inline struct mount *real_mount(struct vfsmount *mnt)
10 {
11 return container_of(mnt, struct mount, mnt);
12 }
13
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);
This page took 0.063508 seconds and 6 git commands to generate.