Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75739
b: refs/heads/master
c: 3794491
h: refs/heads/master
i:
  75737: 3098351
  75735: b97f53f
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jan 25, 2008
1 parent 082ec28 commit 30c6196
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 191e186bd0589e28496745275157323a6f7902ca
refs/heads/master: 3794491d0c4b6355c55b0379f003900e57666a97
13 changes: 6 additions & 7 deletions trunk/fs/configfs/mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ void configfs_release_fs(void)
}


static decl_subsys(config, NULL);
static struct kobject *config_kobj;

static int __init configfs_init(void)
{
Expand All @@ -140,9 +140,8 @@ static int __init configfs_init(void)
if (!configfs_dir_cachep)
goto out;

config_subsys.kobj.kset = &kernel_subsys;
err = subsystem_register(&config_subsys);
if (err) {
config_kobj = kobject_create_and_add("config", &kernel_subsys.kobj);
if (!config_kobj) {
kmem_cache_destroy(configfs_dir_cachep);
configfs_dir_cachep = NULL;
goto out;
Expand All @@ -151,7 +150,7 @@ static int __init configfs_init(void)
err = register_filesystem(&configfs_fs_type);
if (err) {
printk(KERN_ERR "configfs: Unable to register filesystem!\n");
subsystem_unregister(&config_subsys);
kobject_unregister(config_kobj);
kmem_cache_destroy(configfs_dir_cachep);
configfs_dir_cachep = NULL;
goto out;
Expand All @@ -160,7 +159,7 @@ static int __init configfs_init(void)
err = configfs_inode_init();
if (err) {
unregister_filesystem(&configfs_fs_type);
subsystem_unregister(&config_subsys);
kobject_unregister(config_kobj);
kmem_cache_destroy(configfs_dir_cachep);
configfs_dir_cachep = NULL;
}
Expand All @@ -171,7 +170,7 @@ static int __init configfs_init(void)
static void __exit configfs_exit(void)
{
unregister_filesystem(&configfs_fs_type);
subsystem_unregister(&config_subsys);
kobject_unregister(config_kobj);
kmem_cache_destroy(configfs_dir_cachep);
configfs_dir_cachep = NULL;
configfs_inode_exit();
Expand Down

0 comments on commit 30c6196

Please sign in to comment.