mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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: Rabin Vincent <[email protected]> Acked-by: Tejun Heo <[email protected]> Cc: Jens Axboe <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
4491f71260
commit
a50fcb512d
1 changed files with 2 additions and 2 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue