All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mm/damon/core.c: avoid unintentional filtering out of schemes
@ 2023-11-10  5:37 Hyeongtak Ji
  2023-11-10 18:22 ` SeongJae Park
  0 siblings, 1 reply; 6+ messages in thread
From: Hyeongtak Ji @ 2023-11-10  5:37 UTC (permalink / raw)
  To: sj, akpm; +Cc: damon, linux-mm, linux-kernel, Hyeongtak Ji, Hyeongtak Ji

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'.

Signed-off-by: Hyeongtak Ji <hyeongtak.ji@sk.com>
---
 mm/damon/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/damon/core.c b/mm/damon/core.c
index bcd2bd9d6c10..d5ef8945a343 100644
--- a/mm/damon/core.c
+++ b/mm/damon/core.c
@@ -920,7 +920,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;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread
* Re: [PATCH] mm/damon/core.c: avoid unintentional filtering out of schemes
@ 2023-11-30  6:37 honggyu.kim
  0 siblings, 0 replies; 6+ messages in thread
From: honggyu.kim @ 2023-11-30  6:37 UTC (permalink / raw)
  To: sj@kernel.org
  Cc: damon@lists.linux.dev, hyeongtak.ji@sk.com, byungchul@sk.com,
	hokyoon.lee@sk.com

Hi SeongJae,

>> Signed-off-by: Hyeongtak Ji <hyeongtak.ji@sk.com>
> 
> Reviewed-by: SeongJae Park <sj@kernel.org>

Thanks for the review. I'm just sending this whether this message is correctly shown in LKML.

Thanks,
Honggyu

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-11-30  6:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-10  5:37 [PATCH] mm/damon/core.c: avoid unintentional filtering out of schemes Hyeongtak Ji
2023-11-10 18:22 ` SeongJae Park
2023-11-10 18:31   ` Andrew Morton
2023-11-11  0:34     ` Hyeongtak Ji
2023-11-10 18:31   ` SeongJae Park
  -- strict thread matches above, loose matches on Subject: below --
2023-11-30  6:37 honggyu.kim

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.