diff options
Diffstat (limited to 'fs/mount.h')
-rw-r--r-- | fs/mount.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/mount.h b/fs/mount.h index 7890e49f74ef..47da8163e1f4 100644 --- a/fs/mount.h +++ b/fs/mount.h | |||
@@ -1,5 +1,14 @@ | |||
1 | #include <linux/mount.h> | 1 | #include <linux/mount.h> |
2 | 2 | ||
3 | struct mount { | ||
4 | struct vfsmount mnt; | ||
5 | }; | ||
6 | |||
7 | static inline struct mount *real_mount(struct vfsmount *mnt) | ||
8 | { | ||
9 | return container_of(mnt, struct mount, mnt); | ||
10 | } | ||
11 | |||
3 | static inline int mnt_has_parent(struct vfsmount *mnt) | 12 | static inline int mnt_has_parent(struct vfsmount *mnt) |
4 | { | 13 | { |
5 | return mnt != mnt->mnt_parent; | 14 | return mnt != mnt->mnt_parent; |