[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1492680362-24941-2-git-send-email-ldufour@linux.vnet.ibm.com>
Date: Thu, 20 Apr 2017 11:26:01 +0200
From: Laurent Dufour <ldufour@...ux.vnet.ibm.com>
To: Naoya Horiguchi <n-horiguchi@...jp.nec.com>
Cc: linux-kernel@...r.kernel.org, linux-mm@...ck.org,
akpm@...ux-foundation.org
Subject: [RFC 1/2] mm: Uncharge poisoned pages
When page are poisoned, they should be uncharged from the root memory
cgroup.
Signed-off-by: Laurent Dufour <ldufour@...ux.vnet.ibm.com>
---
mm/memory-failure.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/mm/memory-failure.c b/mm/memory-failure.c
index 27f7210e7fab..00bd39d3d4cb 100644
--- a/mm/memory-failure.c
+++ b/mm/memory-failure.c
@@ -530,6 +530,7 @@ static const char * const action_page_types[] = {
static int delete_from_lru_cache(struct page *p)
{
if (!isolate_lru_page(p)) {
+ memcg_kmem_uncharge(p, 0);
/*
* Clear sensible page flags, so that the buddy system won't
* complain when the page is unpoison-and-freed.
--
2.7.4
Powered by blists - more mailing lists