aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r--fs/ext4/super.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 6ed9aa91f27d..7cccb35c0f4d 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -2174,9 +2174,9 @@ static ssize_t lifetime_write_kbytes_show(struct ext4_attr *a,
2174 struct super_block *sb = sbi->s_buddy_cache->i_sb; 2174 struct super_block *sb = sbi->s_buddy_cache->i_sb;
2175 2175
2176 return snprintf(buf, PAGE_SIZE, "%llu\n", 2176 return snprintf(buf, PAGE_SIZE, "%llu\n",
2177 sbi->s_kbytes_written + 2177 (unsigned long long)(sbi->s_kbytes_written +
2178 ((part_stat_read(sb->s_bdev->bd_part, sectors[1]) - 2178 ((part_stat_read(sb->s_bdev->bd_part, sectors[1]) -
2179 EXT4_SB(sb)->s_sectors_written_start) >> 1)); 2179 EXT4_SB(sb)->s_sectors_written_start) >> 1)));
2180} 2180}
2181 2181
2182static ssize_t inode_readahead_blks_store(struct ext4_attr *a, 2182static ssize_t inode_readahead_blks_store(struct ext4_attr *a,
@@ -4005,6 +4005,7 @@ static inline void unregister_as_ext2(void)
4005{ 4005{
4006 unregister_filesystem(&ext2_fs_type); 4006 unregister_filesystem(&ext2_fs_type);
4007} 4007}
4008MODULE_ALIAS("ext2");
4008#else 4009#else
4009static inline void register_as_ext2(void) { } 4010static inline void register_as_ext2(void) { }
4010static inline void unregister_as_ext2(void) { } 4011static inline void unregister_as_ext2(void) { }
@@ -4031,6 +4032,7 @@ static inline void unregister_as_ext3(void)
4031{ 4032{
4032 unregister_filesystem(&ext3_fs_type); 4033 unregister_filesystem(&ext3_fs_type);
4033} 4034}
4035MODULE_ALIAS("ext3");
4034#else 4036#else
4035static inline void register_as_ext3(void) { } 4037static inline void register_as_ext3(void) { }
4036static inline void unregister_as_ext3(void) { } 4038static inline void unregister_as_ext3(void) { }