diff options
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r-- | fs/ext4/super.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 5e6c87836193..5d6d53578124 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -90,6 +90,8 @@ static struct file_system_type ext2_fs_type = { | |||
90 | .kill_sb = kill_block_super, | 90 | .kill_sb = kill_block_super, |
91 | .fs_flags = FS_REQUIRES_DEV, | 91 | .fs_flags = FS_REQUIRES_DEV, |
92 | }; | 92 | }; |
93 | MODULE_ALIAS_FS("ext2"); | ||
94 | MODULE_ALIAS("ext2"); | ||
93 | #define IS_EXT2_SB(sb) ((sb)->s_bdev->bd_holder == &ext2_fs_type) | 95 | #define IS_EXT2_SB(sb) ((sb)->s_bdev->bd_holder == &ext2_fs_type) |
94 | #else | 96 | #else |
95 | #define IS_EXT2_SB(sb) (0) | 97 | #define IS_EXT2_SB(sb) (0) |
@@ -104,6 +106,8 @@ static struct file_system_type ext3_fs_type = { | |||
104 | .kill_sb = kill_block_super, | 106 | .kill_sb = kill_block_super, |
105 | .fs_flags = FS_REQUIRES_DEV, | 107 | .fs_flags = FS_REQUIRES_DEV, |
106 | }; | 108 | }; |
109 | MODULE_ALIAS_FS("ext3"); | ||
110 | MODULE_ALIAS("ext3"); | ||
107 | #define IS_EXT3_SB(sb) ((sb)->s_bdev->bd_holder == &ext3_fs_type) | 111 | #define IS_EXT3_SB(sb) ((sb)->s_bdev->bd_holder == &ext3_fs_type) |
108 | #else | 112 | #else |
109 | #define IS_EXT3_SB(sb) (0) | 113 | #define IS_EXT3_SB(sb) (0) |
@@ -1923,8 +1927,8 @@ static int ext4_fill_flex_info(struct super_block *sb) | |||
1923 | flex_group = ext4_flex_group(sbi, i); | 1927 | flex_group = ext4_flex_group(sbi, i); |
1924 | atomic_add(ext4_free_inodes_count(sb, gdp), | 1928 | atomic_add(ext4_free_inodes_count(sb, gdp), |
1925 | &sbi->s_flex_groups[flex_group].free_inodes); | 1929 | &sbi->s_flex_groups[flex_group].free_inodes); |
1926 | atomic_add(ext4_free_group_clusters(sb, gdp), | 1930 | atomic64_add(ext4_free_group_clusters(sb, gdp), |
1927 | &sbi->s_flex_groups[flex_group].free_clusters); | 1931 | &sbi->s_flex_groups[flex_group].free_clusters); |
1928 | atomic_add(ext4_used_dirs_count(sb, gdp), | 1932 | atomic_add(ext4_used_dirs_count(sb, gdp), |
1929 | &sbi->s_flex_groups[flex_group].used_dirs); | 1933 | &sbi->s_flex_groups[flex_group].used_dirs); |
1930 | } | 1934 | } |
@@ -5152,7 +5156,6 @@ static inline int ext2_feature_set_ok(struct super_block *sb) | |||
5152 | return 0; | 5156 | return 0; |
5153 | return 1; | 5157 | return 1; |
5154 | } | 5158 | } |
5155 | MODULE_ALIAS("ext2"); | ||
5156 | #else | 5159 | #else |
5157 | static inline void register_as_ext2(void) { } | 5160 | static inline void register_as_ext2(void) { } |
5158 | static inline void unregister_as_ext2(void) { } | 5161 | static inline void unregister_as_ext2(void) { } |
@@ -5185,7 +5188,6 @@ static inline int ext3_feature_set_ok(struct super_block *sb) | |||
5185 | return 0; | 5188 | return 0; |
5186 | return 1; | 5189 | return 1; |
5187 | } | 5190 | } |
5188 | MODULE_ALIAS("ext3"); | ||
5189 | #else | 5191 | #else |
5190 | static inline void register_as_ext3(void) { } | 5192 | static inline void register_as_ext3(void) { } |
5191 | static inline void unregister_as_ext3(void) { } | 5193 | static inline void unregister_as_ext3(void) { } |
@@ -5199,6 +5201,7 @@ static struct file_system_type ext4_fs_type = { | |||
5199 | .kill_sb = kill_block_super, | 5201 | .kill_sb = kill_block_super, |
5200 | .fs_flags = FS_REQUIRES_DEV, | 5202 | .fs_flags = FS_REQUIRES_DEV, |
5201 | }; | 5203 | }; |
5204 | MODULE_ALIAS_FS("ext4"); | ||
5202 | 5205 | ||
5203 | static int __init ext4_init_feat_adverts(void) | 5206 | static int __init ext4_init_feat_adverts(void) |
5204 | { | 5207 | { |