linux/mm/damon
SeongJae Park 8c6a765f4a mm/damon/lru_sort: respect addr_unit on default monitoring region setup
In the past, damon_set_region_biggest_system_ram_default(), which is the
core function for setting the default monitoring target region of
DAMON_LRU_SORT, didn't support addr_unit.  Hence DAMON_LRU_SORT was
silently ignoring the user input for addr_unit when the user doesn't
explicitly set the monitoring target regions, and therefore the default
target region is being used.  No real problem from that ignorance was
reported so far.  But, the implicit rule is only making things confusing. 
Also, the default target region setup function is updated to support
addr_unit.  Hence there is no reason to keep ignoring it.  Respect the
user-passed addr_unit for the default target monitoring region use case.

Link: https://lkml.kernel.org/r/20260311052927.93921-6-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Yang yingliang <yangyingliang@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
History 2026-04-05 13:53:29 -07:00
..
tests mm/damon/tests/core-kunit: test goal_tuner commit 2026-04-05 13:53:26 -07:00
core.c mm/damon/core: fix wrong damon_set_regions() argument 2026-04-05 13:53:29 -07:00
Kconfig mm/damon: add CONFIG_DAMON_DEBUG_SANITY 2026-04-05 13:53:20 -07:00
lru_sort.c mm/damon/lru_sort: respect addr_unit on default monitoring region setup 2026-04-05 13:53:29 -07:00
Makefile mm/damon: introduce DAMON_STAT module 2025-07-09 22:41:55 -07:00
modules-common.c mm/damon: s/primitives/code/ on comments 2025-06-05 21:55:41 -07:00
modules-common.h mm/damon: s/primitives/code/ on comments 2025-06-05 21:55:41 -07:00
ops-common.c mm/damon/ops-common: remove redudnant mmu notifier call in pmdp mkold 2026-03-24 14:38:25 -07:00
ops-common.h mm/damon/paddr: move filters existence check function to ops-common 2025-09-13 16:54:47 -07:00
paddr.c mm/damon: remove unused target param of get_scheme_score() 2026-04-05 13:53:00 -07:00
reclaim.c mm/damon/reclaim: respect addr_unit on default monitoring region setup 2026-04-05 13:53:29 -07:00
stat.c mm/damon/stat: monitor all System RAM resources 2026-03-23 09:35:05 -07:00
sysfs-common.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
sysfs-common.h mm/damon: s/primitives/code/ on comments 2025-06-05 21:55:41 -07:00
sysfs-schemes.c mm/damon/sysfs-schemes: implement quotas->goal_tuner file 2026-04-05 13:53:25 -07:00
sysfs.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
vaddr.c mm/damon/vaddr: do not split regions for min_nr_regions 2026-04-05 13:53:11 -07:00