[Devel] [PATCH rh7] mm: fix PAGE_KMEMCG_MAPCOUNT_VALUE

Vladimir Davydov vdavydov at virtuozzo.com
Thu Jun 2 03:28:00 PDT 2016


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 d15d20d84142..731a76613ea4 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)
 {
-- 
2.1.4



More information about the Devel mailing list