]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm/damon/core: receive addr_unit on damon_set_region_biggest_system_ram_default()
authorSeongJae Park <sj@kernel.org>
Wed, 11 Mar 2026 05:29:24 +0000 (22:29 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 5 Apr 2026 20:53:28 +0000 (13:53 -0700)
commiteabc2eddb2767e0ed90f98a65744bf4c8e287db7
treefe46ca971fae6859cb1e5e0c9d76ad71df22b0d7
parentb47dcc1a28ccd5a175549055b7bc7a68a444ee92
mm/damon/core: receive addr_unit on damon_set_region_biggest_system_ram_default()

damon_find_biggest_system_ram() was not supporting addr_unit in the past.
Hence, its caller, damon_set_region_biggest_system_ram_default(), was also
not supporting addr_unit.  The previous commit has updated the inner
function to support addr_unit.  There is no more reason to not support
addr_unit on damon_set_region_biggest_system_ram_default().  Rather, it
makes unnecessary inconsistency on support of addr_unit.  Update it to
receive addr_unit and handle it inside.

Link: https://lkml.kernel.org/r/20260311052927.93921-4-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>
include/linux/damon.h
mm/damon/core.c
mm/damon/lru_sort.c
mm/damon/reclaim.c