diff options
| author | SJ Park <sj@kernel.org> | 2026-09-02 18:07:20 -0700 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-10-08 22:54:35 -0700 |
| commit | dd07497616f2bbddd251828f2f36304500b6eb00 (patch) | |
| tree | d27a446a77292baa2371c16bbf5335ad955b07b1 /samples | |
| parent | 610c4438fb66e06d9e693c0ad3b2c1be54c0d61f (diff) | |
Revert "mm/damon/lru_sort: error out for >10000 active_mem_bp"
This reverts commit 06befa61c427e74319781e6f35a364cfc32dbae8.
The commit was made to avoid zero damos quota goal target value, because
it can trigger division-by-zero. Now the core layer handles the corner
case. It returns an error for any attempt setting the aero target_value.
The corner case handling in DAMON_LRU_SORT is hence no more needed.
Remove it.
Note that this slightly changes the user behavior. It still disallows
active_mem_bp of 10,002. But now it allows other >10,000 active_mem_bp
values. Setting >10,000 active_mem_bp makes not much sense. But it
doesn't cause critical problems such as memory leak or crash, either.
Arguably that doesn't deserve additional code complexity. Just allow it.
Link: https://lore.kernel.org/20260903010722.94244-3-sj@kernel.org
Signed-off-by: SJ Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions
