]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - fs/mount.h
vfs: spread struct mount to remaining users of ->mnt_hash
[mirror_ubuntu-artful-kernel.git] / fs / mount.h
CommitLineData
b2dba1af
AV
1#include <linux/mount.h>
2
7d6fec45
AV
3struct mount {
4 struct vfsmount mnt;
5};
6
7static inline struct mount *real_mount(struct vfsmount *mnt)
8{
9 return container_of(mnt, struct mount, mnt);
10}
11
b2dba1af
AV
12static inline int mnt_has_parent(struct vfsmount *mnt)
13{
14 return mnt != mnt->mnt_parent;
15}
c7105365
AV
16
17extern struct mount *__lookup_mnt(struct vfsmount *, struct dentry *, int);