kernfs: implement kernfs_root->supers list
[firefly-linux-kernel-4.4.55.git] / fs / kernfs / dir.c
index 78f3403300afd5d825ab833964a443953d58f995..43aa97988c31ccb3dcb52f376d223227294f24d2 100644 (file)
@@ -711,6 +711,7 @@ struct kernfs_root *kernfs_create_root(struct kernfs_syscall_ops *scops,
                return ERR_PTR(-ENOMEM);
 
        ida_init(&root->ino_ida);
+       INIT_LIST_HEAD(&root->supers);
 
        kn = __kernfs_new_node(root, "", S_IFDIR | S_IRUGO | S_IXUGO,
                               KERNFS_DIR);