diff options
-rw-r--r-- | fs/ext4/super.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 42f76c64df8c..dcc460537bc7 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -3540,10 +3540,8 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent) | |||
3540 | goto failed_mount; | 3540 | goto failed_mount; |
3541 | } | 3541 | } |
3542 | 3542 | ||
3543 | #ifdef CONFIG_PROC_FS | ||
3544 | if (ext4_proc_root) | 3543 | if (ext4_proc_root) |
3545 | sbi->s_proc = proc_mkdir(sb->s_id, ext4_proc_root); | 3544 | sbi->s_proc = proc_mkdir(sb->s_id, ext4_proc_root); |
3546 | #endif | ||
3547 | 3545 | ||
3548 | bgl_lock_init(sbi->s_blockgroup_lock); | 3546 | bgl_lock_init(sbi->s_blockgroup_lock); |
3549 | 3547 | ||
@@ -5070,13 +5068,11 @@ static int __init ext4_init_fs(void) | |||
5070 | return err; | 5068 | return err; |
5071 | err = ext4_init_system_zone(); | 5069 | err = ext4_init_system_zone(); |
5072 | if (err) | 5070 | if (err) |
5073 | goto out7; | 5071 | goto out6; |
5074 | ext4_kset = kset_create_and_add("ext4", NULL, fs_kobj); | 5072 | ext4_kset = kset_create_and_add("ext4", NULL, fs_kobj); |
5075 | if (!ext4_kset) | 5073 | if (!ext4_kset) |
5076 | goto out6; | ||
5077 | ext4_proc_root = proc_mkdir("fs/ext4", NULL); | ||
5078 | if (!ext4_proc_root) | ||
5079 | goto out5; | 5074 | goto out5; |
5075 | ext4_proc_root = proc_mkdir("fs/ext4", NULL); | ||
5080 | 5076 | ||
5081 | err = ext4_init_feat_adverts(); | 5077 | err = ext4_init_feat_adverts(); |
5082 | if (err) | 5078 | if (err) |
@@ -5112,12 +5108,12 @@ out2: | |||
5112 | out3: | 5108 | out3: |
5113 | ext4_exit_feat_adverts(); | 5109 | ext4_exit_feat_adverts(); |
5114 | out4: | 5110 | out4: |
5115 | remove_proc_entry("fs/ext4", NULL); | 5111 | if (ext4_proc_root) |
5116 | out5: | 5112 | remove_proc_entry("fs/ext4", NULL); |
5117 | kset_unregister(ext4_kset); | 5113 | kset_unregister(ext4_kset); |
5118 | out6: | 5114 | out5: |
5119 | ext4_exit_system_zone(); | 5115 | ext4_exit_system_zone(); |
5120 | out7: | 5116 | out6: |
5121 | ext4_exit_pageio(); | 5117 | ext4_exit_pageio(); |
5122 | return err; | 5118 | return err; |
5123 | } | 5119 | } |