kernfs: implement kernfs_root->supers list
[cascardo/linux.git] / fs / kernfs / kernfs-internal.h
index 8be13b2..dc84a3e 100644 (file)
@@ -49,6 +49,8 @@ static inline struct kernfs_root *kernfs_root(struct kernfs_node *kn)
  * mount.c
  */
 struct kernfs_super_info {
+       struct super_block      *sb;
+
        /*
         * The root associated with this super_block.  Each super_block is
         * identified by the root and ns it's associated with.
@@ -62,6 +64,9 @@ struct kernfs_super_info {
         * an array and compare kernfs_node tag against every entry.
         */
        const void              *ns;
+
+       /* anchored at kernfs_root->supers, protected by kernfs_mutex */
+       struct list_head        node;
 };
 #define kernfs_info(SB) ((struct kernfs_super_info *)(SB->s_fs_info))