[Devel] [PATCH vz8.4 3/4] ve/memcg: Cleanup /proc/vmstat virtualization

Konstantin Khorenko khorenko at virtuozzo.com
Thu Jul 22 17:23:55 MSK 2021


To_merge: ("5f48326db336 ve/memcg: Virtualize /proc/vmstat view inside CT")

https://jira.sw.ru/browse/PSBM-131992

Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
 mm/memcontrol.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index c1e23f0bbe91..9c966e8ece3e 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -4191,9 +4191,7 @@ void mem_cgroup_fill_vmstat(struct mem_cgroup *memcg, unsigned long *stats)
 				  NR_VM_NODE_STAT_ITEMS +
 				  NR_VM_WRITEBACK_STAT_ITEMS;
 
-
-
-	zone_stats[NR_FREE_PAGES] = memory > limit ? 0 : limit- memory;
+	zone_stats[NR_FREE_PAGES] = memory > limit ? 0 : limit - memory;
 
 	for (i = LRU_BASE; i < NR_LRU_LISTS; i++) {
 		node_stats[NR_LRU_BASE + i] =
@@ -4201,9 +4199,9 @@ void mem_cgroup_fill_vmstat(struct mem_cgroup *memcg, unsigned long *stats)
 	}
 
 	node_stats[NR_ANON_MAPPED] = node_stats[NR_ACTIVE_ANON] +
-		node_stats[NR_INACTIVE_ANON];
-	node_stats[NR_FILE_PAGES] = node_stats[NR_ACTIVE_FILE] +
-		node_stats[NR_INACTIVE_FILE];
+				     node_stats[NR_INACTIVE_ANON];
+	node_stats[NR_FILE_PAGES]  = node_stats[NR_ACTIVE_FILE] +
+				     node_stats[NR_INACTIVE_FILE];
 
 	node_stats[NR_SLAB_RECLAIMABLE_B] = mem_page_state_recursive(
 			memcg, NR_SLAB_RECLAIMABLE_B);
-- 
2.28.0



More information about the Devel mailing list