Skip to content

Commit

Permalink
writeback: fix initial dirty limit
Browse files Browse the repository at this point in the history
The initial value of global_wb_domain.dirty_limit set by
writeback_set_ratelimit() is zeroed out by the memset in
wb_domain_init().

Signed-off-by: Rabin Vincent <rabin.vincent@axis.com>
Acked-by: Tejun Heo <tj@kernel.org>
Cc: Jens Axboe <axboe@fb.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
vwax authored and torvalds committed Aug 7, 2015
1 parent 4491f71 commit a50fcb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm/page-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -2063,10 +2063,10 @@ static struct notifier_block ratelimit_nb = {
*/
void __init page_writeback_init(void)
{
BUG_ON(wb_domain_init(&global_wb_domain, GFP_KERNEL));

writeback_set_ratelimit();
register_cpu_notifier(&ratelimit_nb);

BUG_ON(wb_domain_init(&global_wb_domain, GFP_KERNEL));
}

/**
Expand Down

0 comments on commit a50fcb5

Please sign in to comment.