diff options
-rw-r--r-- | fs/ext4/super.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 289a40a81299..64d5e9e78dbc 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -2794,14 +2794,11 @@ static int ext4_feature_set_ok(struct super_block *sb, int readonly) | |||
2794 | * This function is called once a day if we have errors logged | 2794 | * This function is called once a day if we have errors logged |
2795 | * on the file system | 2795 | * on the file system |
2796 | */ | 2796 | */ |
2797 | static void print_daily_error_info(unsigned long arg) | 2797 | static void print_daily_error_info(struct timer_list *t) |
2798 | { | 2798 | { |
2799 | struct super_block *sb = (struct super_block *) arg; | 2799 | struct ext4_sb_info *sbi = from_timer(sbi, t, s_err_report); |
2800 | struct ext4_sb_info *sbi; | 2800 | struct super_block *sb = sbi->s_sb; |
2801 | struct ext4_super_block *es; | 2801 | struct ext4_super_block *es = sbi->s_es; |
2802 | |||
2803 | sbi = EXT4_SB(sb); | ||
2804 | es = sbi->s_es; | ||
2805 | 2802 | ||
2806 | if (es->s_error_count) | 2803 | if (es->s_error_count) |
2807 | /* fsck newer than v1.41.13 is needed to clean this condition. */ | 2804 | /* fsck newer than v1.41.13 is needed to clean this condition. */ |
@@ -3988,8 +3985,7 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent) | |||
3988 | get_random_bytes(&sbi->s_next_generation, sizeof(u32)); | 3985 | get_random_bytes(&sbi->s_next_generation, sizeof(u32)); |
3989 | spin_lock_init(&sbi->s_next_gen_lock); | 3986 | spin_lock_init(&sbi->s_next_gen_lock); |
3990 | 3987 | ||
3991 | setup_timer(&sbi->s_err_report, print_daily_error_info, | 3988 | timer_setup(&sbi->s_err_report, print_daily_error_info, 0); |
3992 | (unsigned long) sb); | ||
3993 | 3989 | ||
3994 | /* Register extent status tree shrinker */ | 3990 | /* Register extent status tree shrinker */ |
3995 | if (ext4_es_register_shrinker(sbi)) | 3991 | if (ext4_es_register_shrinker(sbi)) |