[Devel] [PATCH RHEL7 COMMIT] ve/mm: fix PAGE_KMEMCG_MAPCOUNT_VALUE

Konstantin Khorenko khorenko at virtuozzo.com
Thu Jun 2 08:06:29 PDT 2016


The commit is pushed to "branch-rh7-3.10.0-327.18.2.vz7.14.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-327.18.2.vz7.14.10
------>
commit fe8488c82bb11b53fe75e38642ca4c7c274fd5c0
Author: Vladimir Davydov <vdavydov at virtuozzo.com>
Date:   Thu Jun 2 19:06:29 2016 +0400

    ve/mm: fix PAGE_KMEMCG_MAPCOUNT_VALUE
    
    It should be -512, -256 is used for balloon pages.
    
    Fixes: 1265d3474391 ("mm: charge/uncharge kmemcg from generic page allocator paths")
    Signed-off-by: Vladimir Davydov <vdavydov at virtuozzo.com>
---
 include/linux/page-flags.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h
index d15d20d..731a766 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -523,7 +523,7 @@ static inline void __ClearPageBalloon(struct page *page)
 	atomic_set(&page->_mapcount, -1);
 }
 
-#define PAGE_KMEMCG_MAPCOUNT_VALUE (-256)
+#define PAGE_KMEMCG_MAPCOUNT_VALUE (-512)
 
 static inline int PageKmemcg(struct page *page)
 {


More information about the Devel mailing list