Skip to content

Commit b5048a6

Browse files
Artem BityutskiyJens Axboe
authored andcommitted
writeback: remove unnecessary init_timer call
The 'setup_timer()' function also calls 'init_timer()', so the extra 'init_timer()' call is not needed. Indeed, 'setup_timer()' is basically 'init_timer()' plus callback function and data pointers initialization. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
1 parent 6467716 commit b5048a6

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎mm/backing-dev.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,6 @@ static int __init default_bdi_init(void)
236236
sync_supers_tsk = kthread_run(bdi_sync_supers, NULL, "sync_supers");
237237
BUG_ON(IS_ERR(sync_supers_tsk));
238238

239-
init_timer(&sync_supers_timer);
240239
setup_timer(&sync_supers_timer, sync_supers_timer_fn, 0);
241240
bdi_arm_supers_timer();
242241

0 commit comments

Comments
 (0)