]> git.proxmox.com Git - mirror_ubuntu-kernels.git/blame_incremental - fs/mount.h
vfs: spread struct mount - work with counters
[mirror_ubuntu-kernels.git] / fs / mount.h
... / ...
CommitLineData
1#include <linux/mount.h>
2
3struct mount {
4 struct list_head mnt_hash;
5 struct mount *mnt_parent;
6 struct dentry *mnt_mountpoint;
7 struct vfsmount mnt;
8};
9
10static inline struct mount *real_mount(struct vfsmount *mnt)
11{
12 return container_of(mnt, struct mount, mnt);
13}
14
15static inline int mnt_has_parent(struct mount *mnt)
16{
17 return mnt != mnt->mnt_parent;
18}
19
20extern struct mount *__lookup_mnt(struct vfsmount *, struct dentry *, int);