[Devel] [PATCH RHEL8 COMMIT] mm/memcg: Drop unused struct "accumulated_stats"

Konstantin Khorenko khorenko at virtuozzo.com
Mon Jul 26 19:54:01 MSK 2021


The commit is pushed to "(no" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-305.3.1.el8
------>
commit 872cf21be1e0337e72a5f673165974a48e3a3c80
Author: Konstantin Khorenko <khorenko at virtuozzo.com>
Date:   Thu Jul 22 13:26:14 2021 +0300

    mm/memcg: Drop unused struct "accumulated_stats"
    
    https://jira.sw.ru/browse/PSBM-131992
    
    Fixes: 38a2f168a441 ("ve/proc: virtualize /proc/meminfo in a Container")
    
    Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
 include/linux/memcontrol.h | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h
index fdf93a2de456..5458f18c0ae7 100644
--- a/include/linux/memcontrol.h
+++ b/include/linux/memcontrol.h
@@ -75,16 +75,6 @@ struct mem_cgroup_reclaim_cookie {
 	unsigned int generation;
 };
 
-struct accumulated_stats {
-	unsigned long stat[MEMCG_NR_STAT];
-	unsigned long events[NR_VM_EVENT_ITEMS];
-	unsigned long lru_pages[NR_LRU_LISTS];
-	const unsigned int *stats_array;
-	const unsigned int *events_array;
-	int stats_size;
-	int events_size;
-};
-
 #ifdef CONFIG_MEMCG
 
 #define MEM_CGROUP_ID_SHIFT	16


More information about the Devel mailing list