summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorRabin Vincent <rabin.vincent@axis.com>2015-08-06 15:47:14 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2015-08-07 04:39:42 +0300
commita50fcb512d9539b5179b1e523641420339086995 (patch)
treea172e8e881469c62463a245c0fd5fb57eb45079c /mm
parent4491f7126063ef51081f5662bd4fcae31621a333 (diff)
downloadop-kernel-dev-a50fcb512d9539b5179b1e523641420339086995.zip
op-kernel-dev-a50fcb512d9539b5179b1e523641420339086995.tar.gz
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 <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>
Diffstat (limited to 'mm')
-rw-r--r--mm/page-writeback.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c
index 22cddd3..5cccc12 100644
--- a/mm/page-writeback.c
+++ b/mm/page-writeback.c
@@ -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));
}
/**
OpenPOWER on IntegriCloud