diff options
author | Hyeongtak Ji <hyeongtak.ji@sk.com> | 2023-11-10 14:37:09 +0900 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-11-15 15:30:09 -0800 |
commit | 13b2a4b22e98ff80b888a160a2acd92d81b05925 (patch) | |
tree | 7ab1338f98f7ec4a85d322f6919e31228afb523b | |
parent | 24948e3b7b12e0031a6edb4f49bbb9fb2ad1e4e9 (diff) | |
download | lwn-13b2a4b22e98ff80b888a160a2acd92d81b05925.tar.gz lwn-13b2a4b22e98ff80b888a160a2acd92d81b05925.zip |
mm/damon/core.c: avoid unintentional filtering out of schemes
The function '__damos_filter_out()' causes DAMON to always filter out
schemes whose filter type is anon or memcg if its matching value is set
to false.
This commit addresses the issue by ensuring that '__damos_filter_out()'
no longer applies to filters whose type is 'anon' or 'memcg'.
Link: https://lkml.kernel.org/r/1699594629-3816-1-git-send-email-hyeongtak.ji@gmail.com
Fixes: ab9bda001b681 ("mm/damon/core: introduce address range type damos filter")
Signed-off-by: Hyeongtak Ji <hyeongtak.ji@sk.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r-- | mm/damon/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/damon/core.c b/mm/damon/core.c index 630077d95dc6..6262d55904e7 100644 --- a/mm/damon/core.c +++ b/mm/damon/core.c @@ -924,7 +924,7 @@ static bool __damos_filter_out(struct damon_ctx *ctx, struct damon_target *t, matched = true; break; default: - break; + return false; } return matched == filter->matching; |