diff options
| author | Paul Gofman <[email protected]> | 2024-02-06 13:48:01 +0500 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-02-22 10:24:55 -0800 |
| commit | 055267feaecc9c6c53f128aa50746f64c4ef5ca2 (patch) | |
| tree | a53748b7b3f09a990ad43cf4ad1212068456f4b6 /tools/perf/scripts/python | |
| parent | a230c20e63efef3daab510979898b25a0e446b36 (diff) | |
mm/migrate: preserve exact soft-dirty state
pte_mkdirty() sets both _PAGE_DIRTY and _PAGE_SOFT_DIRTY bits. The
_PAGE_SOFT_DIRTY can get set even if it wasn't set on original page before
migration. This makes non-soft-dirty pages soft-dirty just because of
migration/compaction. Clear the _PAGE_SOFT_DIRTY flag if it wasn't set on
original page.
By definition of soft-dirty feature, there can be spurious soft-dirty
pages because of kernel's internal activity such as VMA merging or
migration/compaction. This patch is eliminating the spurious soft-dirty
pages because of migration/compaction.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Paul Gofman <[email protected]>
Signed-off-by: Muhammad Usama Anjum <[email protected]>
Acked-by: Andrei Vagin <[email protected]>
Cc: Michał Mirosław <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions