vfs: spread struct mount - work with counters
[deliverable/linux.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;
a73324da 6 struct dentry *mnt_mountpoint;
7d6fec45
AV
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
676da58d 15static inline int mnt_has_parent(struct mount *mnt)
b2dba1af 16{
0714a533 17 return mnt != mnt->mnt_parent;
b2dba1af 18}
c7105365
AV
19
20extern struct mount *__lookup_mnt(struct vfsmount *, struct dentry *, int);
This page took 0.025188 seconds and 5 git commands to generate.