RFC mm/damon: avoid division by zero from damos_quota_score()
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 RFC Latest2 patches 2 repliesIn review
- v1 RFC1 patch 1 replySuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | samples/damon/mtier: error out for zero quota goal target valuessamples/ | +3 | 1 reply | |
| 2/2 | mm/damon/lru_sort: error out for >10000 active_mem_bpmm/ | +2 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [RFC PATCH v2 0/2] mm/damon: avoid division by zero from damos_quota_score()
DAMON_SAMPLE_MTIER and DAMON_LRU_SORT allow the user to trigger division by zero in damos_quota_score(). Avoid it by adding parameters validation checks.
Changes from RFC
- RFC: https://lore.kernel.org/[email protected]
- Add a fix for DAMON_LRU_SORT.
SJ Park (2):
samples/damon/mtier: error out for zero quota goal target values mm/damon/lru_sort: error out for >10000 active_mem_bp
mm/damon/lru_sort.c | 2 ++ samples/damon/mtier.c | 3 +++ 2 files changed, 5 insertions(+)
base-commit: 51d61cb34d137b13957ce83455c1f596d39e8cfe
Signature · 1 line
2.47.3