Quanmin Yan
7db551fcfb
mm/damon/reclaim: support addr_unit for DAMON_RECLAIM
...
Implement a sysfs file to expose addr_unit for DAMON_RECLAIM users.
During parameter application, use the configured addr_unit parameter to
perform the necessary initialization. Similar to the core layer, prevent
setting addr_unit to zero.
It is worth noting that when monitor_region_start and monitor_region_end
are unset (i.e., 0), their values will later be set to biggest_system_ram.
At that point, addr_unit may not be the default value 1. Although we
could divide the biggest_system_ram value by addr_unit, changing addr_unit
without setting monitor_region_start/end should be considered a user
misoperation. And biggest_system_ram is only within the 0~ULONG_MAX
range, system can clearly work correctly with addr_unit=1. Therefore, if
monitor_region_start/end are unset, always silently reset addr_unit to 1.
Link: https://lkml.kernel.org/r/20250910113221.1065764-3-yanquanmin1@huawei.com
Signed-off-by: Quanmin Yan <yanquanmin1@huawei.com >
Reviewed-by: SeongJae Park <sj@kernel.org >
Cc: Kefeng Wang <wangkefeng.wang@huawei.com >
Cc: ze zuo <zuoze1@huawei.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-09-21 14:22:33 -07:00
..
2025-09-21 14:22:33 -07:00
2025-09-21 14:22:10 -07:00
2025-09-21 14:22:09 -07:00
2025-06-05 22:02:25 -07:00
2025-09-13 16:54:42 -07:00
2025-08-19 16:35:57 -07:00
2025-03-16 22:06:27 -07:00
2025-07-24 19:12:36 -07:00
2025-03-16 22:06:24 -07:00
2025-09-21 14:22:06 -07:00
2025-05-22 14:55:36 -07:00
2025-07-13 16:38:30 -07:00
2025-05-12 23:50:38 -07:00
2025-08-19 16:35:54 -07:00
2025-09-13 16:54:56 -07:00
2024-07-03 19:29:58 -07:00
2025-07-01 13:25:36 -06:00
2025-01-13 22:40:59 -08:00
2025-08-02 12:06:13 -07:00
2024-11-03 01:28:06 -05:00
2024-09-01 20:43:33 -07:00
2024-09-01 20:43:33 -07:00
2025-09-21 14:22:23 -07:00
2025-03-04 17:02:25 +00:00
2025-09-21 14:22:29 -07:00
2025-09-21 14:22:15 -07:00
2025-09-21 14:22:29 -07:00
2025-09-21 14:22:30 -07:00
2025-03-17 00:05:35 -07:00
2025-09-21 14:22:11 -07:00
2025-09-21 14:22:11 -07:00
2025-07-09 22:42:05 -07:00
2025-03-16 22:06:29 -07:00
2025-09-21 14:22:12 -07:00
2025-09-21 14:22:21 -07:00
2025-03-16 22:06:20 -07:00
2025-09-21 14:22:21 -07:00
2025-03-16 22:06:23 -07:00
2025-09-21 14:22:00 -07:00
2025-03-17 00:05:32 -07:00
2025-09-21 14:19:36 -07:00
2025-09-01 17:11:37 -07:00
2025-09-13 16:54:56 -07:00
2025-07-09 22:41:56 -07:00
2025-07-09 22:42:22 -07:00
2025-08-02 12:06:09 -07:00
2025-09-21 14:21:59 -07:00
2025-07-09 22:42:17 -07:00
2025-08-26 10:47:03 +03:00
2025-09-21 14:22:26 -07:00
2025-03-21 22:03:11 -07:00
2025-09-21 14:22:21 -07:00
2025-09-21 14:22:00 -07:00
2025-09-21 14:22:21 -07:00
2025-09-21 14:22:23 -07:00
2025-09-21 14:22:29 -07:00
2025-09-21 14:22:32 -07:00
2025-07-19 18:59:45 -07:00
2025-08-02 12:06:13 -07:00
2025-09-21 14:22:21 -07:00
2024-03-13 12:12:21 -07:00
2025-09-13 16:54:50 -07:00
2025-09-21 14:22:24 -07:00
2025-09-21 14:22:22 -07:00
2025-09-13 13:05:36 -07:00
2025-09-21 14:22:03 -07:00
2025-09-13 16:54:43 -07:00
2025-09-13 16:54:56 -07:00
2025-09-13 16:54:58 -07:00
2025-05-12 23:50:31 -07:00
2025-09-13 16:55:07 -07:00
2025-08-11 23:00:59 -07:00
2025-09-08 23:45:11 -07:00
2025-08-02 12:06:09 -07:00
2025-09-13 16:54:46 -07:00
2025-08-20 16:31:23 +03:00
2025-08-20 16:31:23 +03:00
2025-05-12 23:50:38 -07:00
2025-09-21 14:22:13 -07:00
2025-09-21 14:22:32 -07:00
2025-03-17 00:05:35 -07:00
2025-07-13 16:38:16 -07:00
2025-01-13 22:40:31 -08:00
2025-06-17 10:44:15 +02:00
2025-09-21 14:22:23 -07:00
2025-07-13 16:38:29 -07:00
2025-07-19 18:59:57 -07:00
2023-12-10 16:51:50 -08:00
2024-01-08 15:27:15 -08:00
2025-05-09 13:43:07 +01:00
2025-07-09 22:42:17 -07:00
2025-09-13 16:55:17 -07:00
2025-09-21 14:22:05 -07:00
2024-07-10 12:14:54 -07:00
2025-09-21 14:22:04 -07:00
2025-07-13 16:38:23 -07:00
2024-04-25 20:55:49 -07:00
2025-09-08 23:45:10 -07:00
2025-07-09 22:42:17 -07:00
2024-11-05 16:56:23 -08:00
2025-01-13 22:40:48 -08:00
2025-07-09 22:42:20 -07:00
2025-09-21 14:22:28 -07:00
2025-09-13 16:55:15 -07:00
2025-01-13 22:40:38 -08:00
2025-07-31 14:57:54 -07:00
2024-09-01 20:25:45 -07:00
2025-09-21 14:22:30 -07:00
2025-09-21 14:22:29 -07:00
2025-03-17 00:05:40 -07:00
2024-10-31 20:27:04 -07:00
2024-01-08 15:27:15 -08:00
2025-05-12 23:50:31 -07:00
2025-09-13 16:55:08 -07:00
2025-09-13 16:55:08 -07:00
2025-08-27 22:45:44 -07:00
2025-09-13 16:55:07 -07:00
2025-03-17 22:06:58 -07:00
2025-09-21 14:22:25 -07:00
2025-09-21 14:22:25 -07:00
2025-09-21 14:22:32 -07:00
2025-09-21 14:22:25 -07:00
2025-09-21 14:22:25 -07:00
2025-06-02 16:00:26 -07:00
2025-02-28 11:51:31 -08:00
2025-09-21 14:22:22 -07:00
2025-09-21 14:22:14 -07:00
2025-07-09 22:42:11 -07:00
2025-09-13 16:55:02 -07:00
2025-01-13 22:40:42 -08:00
2025-08-05 16:02:07 +03:00
2025-09-13 16:55:02 -07:00
2025-09-21 14:19:36 -07:00
2025-07-24 19:12:32 -07:00
2025-09-21 14:22:29 -07:00
2025-09-21 14:22:29 -07:00
2025-09-13 16:55:07 -07:00
2025-09-21 14:21:59 -07:00
2025-09-21 14:21:59 -07:00
2025-09-21 14:22:25 -07:00