kernfs: move struct kernfs_root out of the public view.
[linux-2.6-block.git] / fs / sysfs / mount.c
index e747c135c1d1f4cbf5ef6040312084b42381a0d3..98467bb7673781635aba023a6c2eb53505b6c548 100644 (file)
@@ -103,7 +103,7 @@ int __init sysfs_init(void)
        if (IS_ERR(sysfs_root))
                return PTR_ERR(sysfs_root);
 
-       sysfs_root_kn = sysfs_root->kn;
+       sysfs_root_kn = kernfs_root_to_node(sysfs_root);
 
        err = register_filesystem(&sysfs_fs_type);
        if (err) {