]> git.ipfire.org Git - thirdparty/kernel/linux.git/blobdiff - fs/overlayfs/ovl_entry.h
ovl: make use of ->layers safe in rcu pathwalk
[thirdparty/kernel/linux.git] / fs / overlayfs / ovl_entry.h
index e9539f98e86a4b29d0c54dc1859ea13d37cd46f2..d82d2a043da2c7b7ea055a5c7dbbe0b3c2544dbc 100644 (file)
@@ -8,6 +8,7 @@
 struct ovl_config {
        char *upperdir;
        char *workdir;
+       char **lowerdirs;
        bool default_permissions;
        int redirect_mode;
        int verity_mode;
@@ -39,17 +40,8 @@ struct ovl_layer {
        int idx;
        /* One fsid per unique underlying sb (upper fsid == 0) */
        int fsid;
-       char *name;
 };
 
-/*
- * ovl_free_fs() relies on @mnt being the first member when unmounting
- * the private mounts created for each layer. Let's check both the
- * offset and type.
- */
-static_assert(offsetof(struct ovl_layer, mnt) == 0);
-static_assert(__same_type(typeof_member(struct ovl_layer, mnt), struct vfsmount *));
-
 struct ovl_path {
        const struct ovl_layer *layer;
        struct dentry *dentry;