lkml.org 
[lkml]   [2017]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC 1/2] mm: Uncharge poisoned pages
Date
When page are poisoned, they should be uncharged from the root memory
cgroup.

Signed-off-by: Laurent Dufour <ldufour@linux.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
\
 
 \ /
  Last update: 2017-04-20 11:27    [W:0.067 / U:1.400 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site