linux/mm/damon
SeongJae Park 2a689e4e83 mm/damon/core: put ops-handled filters to damos->ops_filters
damos->ops_filters has introduced to be used for all operations layer
handled filters.  But DAMON kernel API callers can put any type of DAMOS
filters to any of damos->filters and damos->ops_filters.  DAMON user-space
ABI users have no way to use ->ops_filters at all.  Update
damos_add_filter(), which should be used by API callers to install DAMOS
filters, to add filters to ->filters and ->ops_filters depending on their
handling layer.  The change forces both API callers and ABI users to use
proper lists since ABI users use the API internally.

Link: https://lkml.kernel.org/r/20250304211913.53574-5-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-03-17 00:05:38 -07:00
..
tests mm/damon: add 'allow' argument to damos_new_filter() 2025-01-25 20:22:32 -08:00
core.c mm/damon/core: put ops-handled filters to damos->ops_filters 2025-03-17 00:05:38 -07:00
Kconfig mm/damon: remove DAMON debugfs interface 2025-01-25 20:22:29 -08:00
lru_sort.c Revert "mm/damon/lru_sort: adjust local variable to dynamic allocation" 2024-09-09 16:39:00 -07:00
Makefile mm/damon: remove DAMON debugfs interface 2025-01-25 20:22:29 -08:00
modules-common.c mm/damon: update email of SeongJae 2023-12-20 14:48:13 -08:00
modules-common.h mm/damon/modules: deduplicate init steps for DAMON context setup 2022-11-30 15:01:26 -08:00
ops-common.c mm/damon/ops: have damon_get_folio return folio even for tail pages 2025-03-16 22:06:08 -07:00
ops-common.h mm/damon/ops-common: atomically test and clear young on ptes and pmds 2023-06-09 16:25:55 -07:00
paddr.c mm/damon/paddr: support ops_filters 2025-03-17 00:05:38 -07:00
reclaim.c mm/damon: add 'allow' argument to damos_new_filter() 2025-01-25 20:22:32 -08:00
sysfs-common.c mm/damon/sysfs: make kobj_type structures constant 2023-02-09 16:51:45 -08:00
sysfs-common.h mm/damon/sysfs-schemes: expose per-region filter-passed bytes 2025-01-25 20:22:28 -08:00
sysfs-schemes.c mm/damon: implement a new DAMOS filter type for unmapped pages 2025-03-16 22:06:32 -07:00
sysfs.c mm/damon/sysfs: implement a command to update auto-tuned monitoring intervals 2025-03-17 00:05:33 -07:00
vaddr.c mm/damon: ask apply_scheme() to report filter-passed region-internal bytes 2025-01-25 20:22:26 -08:00