mm-memcg-add-per-memcg-zswap-writeback-stat.patch removed from -mm tree
The quilt patch titled
Subject: mm: memcg: add per-memcg zswap writeback stat
has been removed from the -mm tree. Its filename was
mm-memcg-add-per-memcg-zswap-writeback-stat.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Domenico Cerasuolo <[email protected]>
Subject: mm: memcg: add per-memcg zswap writeback stat
Date: Thu, 30 Nov 2023 11:40:21 -0800
Since zswap now writes back pages from memcg-specific LRUs, we now need a new stat to show writebacks count for each memcg.
[[email protected]: rename ZSWP_WB to ZSWPWB]
Suggested-by Nhat Pham <[email protected]>
Signed-off-by Domenico Cerasuolo <[email protected]>
Signed-off-by Nhat Pham <[email protected]>
Tested-by Bagas Sanjaya <[email protected]>
Reviewed-by Yosry Ahmed <[email protected]>
Cc Chris Li <[email protected]>
Cc Dan Streetman <[email protected]>
Cc Johannes Weiner <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Muchun Song <[email protected]>
Cc Roman Gushchin <[email protected]>
Cc Seth Jennings <[email protected]>
Cc Shakeel Butt <[email protected]>
Cc Shuah Khan <[email protected]>
Cc Vitaly Wool <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
include/linux/vm_event_item.h | 1 + mm/memcontrol.c | 1 + mm/vmstat.c | 1 + mm/zswap.c | 4 ++++ 4 files changed, 7 insertions(+)
include/linux/vm_event_item.h renamed from include/linux/vm_event_item.h~mm-memcg-add-per-memcg-zswap-writeback-stat +1 -0
@@ -142,6 +142,7 @@ enum vm_event_item { PGPGIN, PGPGOUT, PS#ifdef CONFIG_ZSWAP ZSWPIN ,ZSWPOUT , +ZSWPWB , #endif #ifdef CONFIG_X86 DIRECT_MAP_LEVEL2_SPLIT,
mm/memcontrol.c renamed from mm/memcontrol.c~mm-memcg-add-per-memcg-zswap-writeback-stat +1 -0
@@ -703,6 +703,7 @@ static const unsigned int memcg_vm_event#if defined(CONFIG_MEMCG_KMEM ) && defined(CONFIG_ZSWAP )ZSWPIN ,ZSWPOUT , +ZSWPWB , #endif #ifdef CONFIG_TRANSPARENT_HUGEPAGE THP_FAULT_ALLOC,
mm/vmstat.c renamed from mm/vmstat.c~mm-memcg-add-per-memcg-zswap-writeback-stat +1 -0
@@ -1401,6 +1401,7 @@ const char * const vmstat_text[] = {#ifdef CONFIG_ZSWAP "zswpin" ,"zswpout" , +"zswpwb" , #endif #ifdef CONFIG_X86 "direct_map_level2_splits",
mm/zswap.c renamed from mm/zswap.c~mm-memcg-add-per-memcg-zswap-writeback-stat +4 -0
@@ -760,6 +760,10 @@ static enum lru_status shrink_memcg_cb(s } zswap_written_back_pages++; +if (entry->objcg) +count_objcg_event (entry->objcg,ZSWPWB ); + +count_vm_event (ZSWPWB );/* * Writeback started successfully, the page now belongs to the * swapcache. Drop the entry from zswap - unless invalidate already
_
Patches currently in -mm which might be from [email protected] are