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

Konstantin Khorenko khorenko at virtuozzo.com
Tue Jul 27 12:59:09 MSK 2021


The commit is pushed to "branch-rh8-4.18.0-240.1.1.vz8.5.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-240.1.1.vz8.5.60
------>
commit fae53d138280162075466db24af9f8afc73e1843
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 71606e4adde4..14dcb9d3c9c9 100644
--- a/include/linux/memcontrol.h
+++ b/include/linux/memcontrol.h
@@ -71,16 +71,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