diff options
| author | SeongJae Park <[email protected]> | 2025-02-07 21:20:33 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-03-17 05:06:08 +0000 |
| commit | 94ba17adaba0f651fdcf745c8891a88e2e028cfa (patch) | |
| tree | 75a230b9de1c0a96ad291a3094f7f1ac4d717bb7 /mm/mm_init.c | |
| parent | mm/damon/ops: have damon_get_folio return folio even for tail pages (diff) | |
| download | kernel-94ba17adaba0f651fdcf745c8891a88e2e028cfa.tar.gz kernel-94ba17adaba0f651fdcf745c8891a88e2e028cfa.zip | |
mm/damon: avoid applying DAMOS action to same entity multiple times
'paddr' DAMON operations set can apply a DAMOS scheme's action to a large
folio multiple times in single DAMOS-regions-walk if the folio is laid on
multiple DAMON regions. Add a field for DAMOS scheme object that can be
used by the underlying ops to know what was the last entity that the
scheme's action has applied. The core layer unsets the field when each
DAMOS-regions-walk is done for the given scheme. And update 'paddr' ops
to use the infrastructure to avoid the problem.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 57223ac29584 ("mm/damon/paddr: support the pageout scheme")
Signed-off-by: SeongJae Park <[email protected]>
Reported-by: Usama Arif <[email protected]>
Closes: https://lore.kernel.org/[email protected]
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/mm_init.c')
0 files changed, 0 insertions, 0 deletions
