]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - fs/mount.h
vfs: now it can be done - make mnt_parent point to struct mount
[mirror_ubuntu-bionic-kernel.git] / fs / mount.h
CommitLineData
b2dba1af
AV
1#include <linux/mount.h>
2
7d6fec45 3struct mount {
1b8e5564 4 struct list_head mnt_hash;
0714a533 5 struct mount *mnt_parent;
7d6fec45
AV
6 struct vfsmount mnt;
7};
8
9static inline struct mount *real_mount(struct vfsmount *mnt)
10{
11 return container_of(mnt, struct mount, mnt);
12}
13
676da58d 14static inline int mnt_has_parent(struct mount *mnt)
b2dba1af 15{
0714a533 16 return mnt != mnt->mnt_parent;
b2dba1af 17}
c7105365
AV
18
19extern struct mount *__lookup_mnt(struct vfsmount *, struct dentry *, int);