[Devel] [PATCH rh7 2/9] Revert "mm/vmalloc: do not account vmap_area to memcg"

Vladimir Davydov vdavydov at virtuozzo.com
Tue Apr 26 07:08:37 PDT 2016


This reverts commit aeac47f55e9e0e40a655d02a7846d8c09f4704f8.

We are going to switch to the whitelist kmem accounting policy, so zap
every usage of __GFP_NOACCOUNT.

Signed-off-by: Vladimir Davydov <vdavydov at virtuozzo.com>
---
 mm/vmalloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index e29fe5ec27d1..32d3744a9c46 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -355,7 +355,7 @@ static struct vmap_area *alloc_vmap_area(unsigned long size,
 	BUG_ON(!is_power_of_2(align));
 
 	va = kmalloc_node(sizeof(struct vmap_area),
-			(gfp_mask & GFP_RECLAIM_MASK) | __GFP_NOACCOUNT, node);
+			gfp_mask & GFP_RECLAIM_MASK, node);
 	if (unlikely(!va))
 		return ERR_PTR(-ENOMEM);
 
-- 
2.1.4



More information about the Devel mailing list