mount: attach mappings to mounts
[sfrench/cifs-2.6.git] / include / linux / mount.h
index aaf343b38671ce99f356e814cdb495fdd6551e18..52de25e08319f42d46b5969970ebf7c57faad471 100644 (file)
@@ -72,8 +72,14 @@ struct vfsmount {
        struct dentry *mnt_root;        /* root of the mounted tree */
        struct super_block *mnt_sb;     /* pointer to superblock */
        int mnt_flags;
+       struct user_namespace *mnt_userns;
 } __randomize_layout;
 
+static inline struct user_namespace *mnt_user_ns(const struct vfsmount *mnt)
+{
+       return mnt->mnt_userns;
+}
+
 struct file; /* forward dec */
 struct path;