mm/damon/core: fix the size charged for a filter-trimmed region
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | mm/damon/core: charge only the part of a region the filter leftmm/ | +1 | 2 replies | |
| 2/2 | mm/damon/tests/core-kunit: test the size charged for a filter-trimmed regionmm/ | +316 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | SJ Park |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v1 0/2] mm/damon/core: fix the size charged for a filter-trimmed region
An address range DAMOS filter that partially overlaps a monitoring region splits it, so the scheme action reaches only one side of the boundary. damos_apply_scheme() reads the region size before that split and never re-reads it, so the quota charge and schemes/<S>/stats/sz_tried account for the whole original region.
Patch 1 re-reads the size after the core filters have run. Patch 2 adds KUnit coverage for what the function charges and reports, for the trimmed cases and for the cases that must not change.
Donggeun Yoo (2):
mm/damon/core: charge only the part of a region the filter left mm/damon/tests/core-kunit: test the size charged for a filter-trimmed
region
mm/damon/core.c | 1 + mm/damon/tests/core-kunit.h | 316 ++++++++++++++++++++++++++++++++++++ 2 files changed, 317 insertions(+)
base-commit: 892f5b3b07e5b07f2f29c87750ff94fa58dcab73
Signature · 1 line
2.53.0