vfs: spread struct mount - mnt_has_parent
[deliverable/linux.git] / fs / mount.h
1 #include <linux/mount.h>
2
3 struct mount {
4 struct list_head mnt_hash;
5 struct vfsmount mnt;
6 };
7
8 static inline struct mount *real_mount(struct vfsmount *mnt)
9 {
10 return container_of(mnt, struct mount, mnt);
11 }
12
13 static inline int mnt_has_parent(struct mount *mnt)
14 {
15 return &mnt->mnt != mnt->mnt.mnt_parent;
16 }
17
18 extern struct mount *__lookup_mnt(struct vfsmount *, struct dentry *, int);
This page took 0.111146 seconds and 6 git commands to generate.