mm/damon: move zero damos quota target_value handling to the core layer
Status from this message: [merged mm-stable] revert-samples-damon-mtier-error-out-for-zero-quota-goal-target-values.patch removed from -mm tree
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 3 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | mm/damon/core: error damos_commit_quota_goal() for zero target_valuemm/ | +16 | 0 replies | Applied |
| 2/3 | Revert "mm/damon/lru_sort: error out for >10000 active_mem_bp"mm/ | +0 | 0 replies | Applied |
| 3/3 | Revert "samples/damon/mtier: error out for zero quota goal target values"samples/ | +0 | 0 replies | Applied |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] mm/damon: move zero damos quota target_value handling to the core layer
Having zero DAMOS quota target value can cause division by zero. DAMON API callers are checking the target value parameters to avoid that. It is easy to make mistakes in some of the multiple API callers. Move that to the core layer.
Patch 1 adds the corner case handling into the core layer DAMON parameters validation logic. Patches 2 and 3 remove no more needed DAMON API callers side handling of the corner case in DAMON_LRU_SORT and DMON_SAMPLIE_MTIER, respectively.
Changes from RFC
- RFC: https://lore.kernel.org/[email protected]
- Drop RFC tag.
- Rebase to latest mm-new.
SJ Park (3):
mm/damon/core: error damos_commit_quota_goal() for zero target_value Revert "mm/damon/lru_sort: error out for >10000 active_mem_bp" Revert "samples/damon/mtier: error out for zero quota goal target
values"
mm/damon/core.c | 22 ++++++++++++++++------ mm/damon/lru_sort.c | 2 -- samples/damon/mtier.c | 3 --- 3 files changed, 16 insertions(+), 11 deletions(-)
base-commit: e5bdf22abf33923f4571fae61ef1e184afc7ddf6
Signature · 1 line
2.47.3