Skip to content

Commit

Permalink
ext4: change to use setup_timer() instead of init_timer()
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Mrazek <email@honzamrazek.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
  • Loading branch information
Jan Mrazek authored and Theodore Ts'o committed Jan 26, 2015
1 parent 3edc18d commit 04ecddb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fs/ext4/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -3915,9 +3915,8 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
get_random_bytes(&sbi->s_next_generation, sizeof(u32));
spin_lock_init(&sbi->s_next_gen_lock);

init_timer(&sbi->s_err_report);
sbi->s_err_report.function = print_daily_error_info;
sbi->s_err_report.data = (unsigned long) sb;
setup_timer(&sbi->s_err_report, print_daily_error_info,
(unsigned long) sb);

/* Register extent status tree shrinker */
if (ext4_es_register_shrinker(sbi))
Expand Down

0 comments on commit 04ecddb

Please sign in to comment.