vfs: spread struct mount - mnt_has_parent
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / fs / mount.h
blob541daf568f63561a1411c15a4379a48f438f4d69
1 #include <linux/mount.h>
3 struct mount {
4 struct list_head mnt_hash;
5 struct vfsmount mnt;
6 };
8 static inline struct mount *real_mount(struct vfsmount *mnt)
10 return container_of(mnt, struct mount, mnt);
13 static inline int mnt_has_parent(struct mount *mnt)
15 return &mnt->mnt != mnt->mnt.mnt_parent;
18 extern struct mount *__lookup_mnt(struct vfsmount *, struct dentry *, int);