kernfs: implement kernfs_root->supers list
[cascardo/linux.git] / include / linux / kernfs.h
index b0122dc..589318b 100644 (file)
@@ -144,6 +144,10 @@ struct kernfs_root {
        /* private fields, do not use outside kernfs proper */
        struct ida              ino_ida;
        struct kernfs_syscall_ops *syscall_ops;
+
+       /* list of kernfs_super_info of this root, protected by kernfs_mutex */
+       struct list_head        supers;
+
        wait_queue_head_t       deactivate_waitq;
 };