lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <lzg7yfgzcpqmk3x6ywfpjqnsqbexnt7rcx5pa6zm3w2ltqhdmp@y2gtwlh22ozp>
Date: Wed, 24 Jul 2024 16:48:47 -0700
From: Shakeel Butt <shakeel.butt@...ux.dev>
To: Roman Gushchin <roman.gushchin@...ux.dev>
Cc: Andrew Morton <akpm@...ux-foundation.org>, linux-mm@...ck.org, 
	linux-kernel@...r.kernel.org, Johannes Weiner <hannes@...xchg.org>, 
	Michal Hocko <mhocko@...nel.org>, Muchun Song <muchun.song@...ux.dev>
Subject: Re: [PATCH v2 5/5] mm: memcg: convert enum res_type to
 mem_counter_type

On Wed, Jul 24, 2024 at 08:21:03PM GMT, Roman Gushchin wrote:
> The res_type enum is listing all types of memory tracked by memory
> cgroups: generic memory, swap, kernel memory, tcp etc; and it's
> currently used only for dealing with corresponding sysfs files.
> 
> To prepare for tracking of various types of memory by a single
> page_counter structure, a similar enumeration is needed. Instead
> of introducing a completely new enumeration, let's re-purpose
> the existing one: rename it into mem_counter_type, change items
> names to be more meaningful and move to page_counter.h. The latter
> is needed to have the total number of different memory types
> available.
> 
> This change doesn't bring any functional difference, it's a pure
> refactoring.
> 
> Signed-off-by: Roman Gushchin <roman.gushchin@...ux.dev>

Acked-by: Shakeel Butt <shakeel.butt@...ux.dev>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ