mbox series

[v2,0/2] Expose swapcache stat for memcg v1

Message ID 20230915105845.3199656-1-liushixin2@huawei.com (mailing list archive)
Headers show
Series Expose swapcache stat for memcg v1 | expand

Message

Liu Shixin Sept. 15, 2023, 10:58 a.m. UTC
The first patch expose swapcache stat for memcg v1, the second patch
remote unused do_memsw_account() in memcg1_stat_format().

v1->v2: Cover MEMCG_SWAP with CONFIG_SWAP and delete unused code suggested
	by Michal.

Liu Shixin (2):
  memcg: expose swapcache stat for memcg v1
  memcg: remove unused do_memsw_account in memcg1_stat_format

 Documentation/admin-guide/cgroup-v1/memory.rst |  1 +
 mm/memcontrol.c                                | 15 ++++++++-------
 2 files changed, 9 insertions(+), 7 deletions(-)

Comments

Tejun Heo Sept. 18, 2023, 6:37 p.m. UTC | #1
On Fri, Sep 15, 2023 at 06:58:43PM +0800, Liu Shixin wrote:
> The first patch expose swapcache stat for memcg v1, the second patch
> remote unused do_memsw_account() in memcg1_stat_format().
> 
> v1->v2: Cover MEMCG_SWAP with CONFIG_SWAP and delete unused code suggested
> 	by Michal.
> 
> Liu Shixin (2):
>   memcg: expose swapcache stat for memcg v1
>   memcg: remove unused do_memsw_account in memcg1_stat_format

Acked-by: Tejun heo <tj@kernel.org>

Thanks.