Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233176
b: refs/heads/master
c: 8f02122
h: refs/heads/master
v: v3
  • Loading branch information
Lukas Czerner authored and Theodore Ts'o committed Feb 3, 2011
1 parent 916799f commit 14002ab
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 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: 8f1f745331c1b560f53c0d60e55a4f4f43f7cce5
refs/heads/master: 8f021222c1e2756ea4c9dde93b23e1d2a0a4ec37
12 changes: 10 additions & 2 deletions trunk/fs/ext4/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -4769,7 +4769,7 @@ static struct file_system_type ext4_fs_type = {
.fs_flags = FS_REQUIRES_DEV,
};

int __init ext4_init_feat_adverts(void)
static int __init ext4_init_feat_adverts(void)
{
struct ext4_features *ef;
int ret = -ENOMEM;
Expand All @@ -4793,6 +4793,13 @@ int __init ext4_init_feat_adverts(void)
return ret;
}

static void ext4_exit_feat_adverts(void)
{
kobject_put(&ext4_feat->f_kobj);
wait_for_completion(&ext4_feat->f_kobj_unregister);
kfree(ext4_feat);
}

static int __init ext4_init_fs(void)
{
int err;
Expand Down Expand Up @@ -4839,7 +4846,7 @@ static int __init ext4_init_fs(void)
out2:
ext4_exit_mballoc();
out3:
kfree(ext4_feat);
ext4_exit_feat_adverts();
remove_proc_entry("fs/ext4", NULL);
kset_unregister(ext4_kset);
out4:
Expand All @@ -4858,6 +4865,7 @@ static void __exit ext4_exit_fs(void)
destroy_inodecache();
ext4_exit_xattr();
ext4_exit_mballoc();
ext4_exit_feat_adverts();
remove_proc_entry("fs/ext4", NULL);
kset_unregister(ext4_kset);
ext4_exit_system_zone();
Expand Down

0 comments on commit 14002ab

Please sign in to comment.