mm-damon-core-introduce-damon_filter_type_memcg.patch removed from -mm tree
The quilt patch titled
Subject: mm/damon/core: introduce DAMON_FILTER_TYPE_MEMCG
has been removed from the -mm tree. Its filename was
mm-damon-core-introduce-damon_filter_type_memcg.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: SeongJae Park <[email protected]>
Subject: mm/damon/core: introduce DAMON_FILTER_TYPE_MEMCG
Date: Mon, 18 May 2026 16:41:10 -0700
Belonging memory cgoup is another data attribute that can be useful to monitor. Introduce a new DAMON filter type, namely DAMON_FILTER_TYPE_MEMCG, for monitoring of this attribute.
---
include/linux/damon.h | 6 ++++++ mm/damon/core.c | 14 ++++++++++++++ 2 files changed, 20 insertions(+)
include/linux/damon.h renamed from include/linux/damon.h~mm-damon-core-introduce-damon_filter_type_memcg +6 -0
@@ -742,9 +742,11 @@ struct damon_intervals_goal {* enum damon_filter_type - Type of &struct damon_filter * * @DAMON_FILTER_TYPE_ANON: Anonymous pages. +* @DAMON_FILTER_TYPE_MEMCG: Specific memcg's pages. */ enum damon_filter_type {DAMON_FILTER_TYPE_ANON , +DAMON_FILTER_TYPE_MEMCG , };/**
@@ -753,12 +755,16 @@ enum damon_filter_type {* @type: Type of the region. * @matching: Whether this filter is for the type-matching ones. * @allow: Whether the @type-@matching ones should pass this filter. +* @memcg_id: Memcg id of the question if @type is DAMON_FILTER_MEMCG. * @list: Siblings list. */ struct damon_filter {enum damon_filter_type type;bool matching;bool allow; +union { +u64 memcg_id; + };struct list_head list; };
mm/damon/core.c renamed from mm/damon/core.c~mm-damon-core-introduce-damon_filter_type_memcg +14 -0
@@ -1430,6 +1430,13 @@ static void damon_commit_filter(struct d dst->type = src->type; dst->matching = src->matching; dst->allow = src->allow; +switch (dst->type) { +case DAMON_FILTER_TYPE_MEMCG : + dst->memcg_id = src->memcg_id; +break ; +default : +break ; + } } static int damon_commit_filters(struct damon_probe *dst,
@@ -1454,6 +1461,13 @@ static int damon_commit_filters(struct d src_filter->matching, src_filter->allow);if (!new_filter)return -ENOMEM ; +switch (src_filter->type) { +case DAMON_FILTER_TYPE_MEMCG : + new_filter->memcg_id = src_filter->memcg_id; +break ; +default : +break ; + }damon_add_filter (dst, new_filter); }return 0 ;
_
Patches currently in -mm which might be from [email protected] are
mm-damon-reclaim-handle-ctx-allocation-failure.patch mm-damonn-lru_sort-handle-ctx-allocation-failure.patch maintainers-add-testing-abi-documents-for-mm.patch