Displaying 1 result from an estimated 1 matches for "root_kobj".
2008 Feb 13
2
[PATCH] btrfs: fixes for kobject changes in mainline
...oto fail;
-
- error = kobject_register(&fs->super_kobj);
+ fs->super_kobj.kset = btrfs_kset;
+ error = kobject_init_and_add(&fs->super_kobj, &btrfs_super_ktype,
+ NULL, "%s", name);
if (error)
goto fail;
@@ -232,15 +228,9 @@
{
int error;
- root->root_kobj.ktype = &btrfs_root_ktype;
- root->root_kobj.parent = &root->fs_info->super_kobj;
-
- error = kobject_set_name(&root->root_kobj, "%s", root->name);
- if (error) {
- goto fail;
- }
-
- error = kobject_register(&root->root_kobj);
+ error = kobject_init_and...