sysfs, kernfs: make super_blocks bind to different kernfs_roots
[platform/adaptation/renesas_rcar/renesas_kernel.git] / fs / sysfs / sysfs.h
index ce97907..93b4b68 100644 (file)
 
 struct sysfs_super_info {
        /*
+        * The root associated with this super_block.  Each super_block is
+        * identified by the root and ns it's associated with.
+        */
+       struct kernfs_root      *root;
+
+       /*
         * Each sb is associated with one namespace tag, currently the network
         * namespace of the task which mounted this sysfs instance.  If multiple
         * tags become necessary, make the following an array and compare
@@ -28,7 +34,7 @@ struct sysfs_super_info {
        const void              *ns;
 };
 #define sysfs_info(SB) ((struct sysfs_super_info *)(SB->s_fs_info))
-extern struct sysfs_dirent sysfs_root;
+extern struct sysfs_dirent *sysfs_root_sd;
 extern struct kmem_cache *sysfs_dir_cachep;
 
 /*