summaryrefslogtreecommitdiffstats
path: root/mm/page-writeback.c
diff options
context:
space:
mode:
authorRabin Vincent <rabin.vincent@axis.com>2015-08-07 00:47:14 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2015-08-07 03:39:42 +0200
commita50fcb512d9539b5179b1e523641420339086995 (patch)
treea172e8e881469c62463a245c0fd5fb57eb45079c /mm/page-writeback.c
parentmm/memory-failure: set PageHWPoison before migrate_pages() (diff)
downloadlinux-a50fcb512d9539b5179b1e523641420339086995.tar.xz
linux-a50fcb512d9539b5179b1e523641420339086995.zip
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/page-writeback.c')
-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 22cddd3e5de8..5cccc127ef81 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));
}
/**