[Devel] [PATCH vz8.4 2/4] mm/memcg: Drop unused struct "accumulated_stats"

Kirill Tkhai ktkhai at virtuozzo.com
Fri Jul 23 18:46:53 MSK 2021


On 22.07.2021 17:23, Konstantin Khorenko wrote:
> 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>

Reviewed-by: Kirill Tkhai <ktkhai 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