[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1438794520-27414-1-git-send-email-rabin.vincent@axis.com>
Date: Wed, 5 Aug 2015 19:08:40 +0200
From: Rabin Vincent <rabin.vincent@...s.com>
To: <axboe@...com>, <akpm@...ux-foundation.org>
CC: <tj@...nel.org>, <linux-mm@...ck.org>,
<linux-kernel@...r.kernel.org>, Rabin Vincent <rabinv@...s.com>
Subject: [PATCH] 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@...s.com>
---
mm/page-writeback.c | 4 ++--
1 file 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));
}
/**
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists