Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a50fcb51 authored by Rabin Vincent's avatar Rabin Vincent Committed by Linus Torvalds
Browse files

writeback: fix initial dirty limit



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: default avatarRabin Vincent <rabin.vincent@axis.com>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Cc: Jens Axboe <axboe@fb.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4491f712
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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));
}

/**