summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2025-05-12 19:44:09 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-05-12 19:44:09 +0200
commit69905a3b06ccf51b9b7387415928e326886776c9 (patch)
tree846ad015ddfd5a2b5bc69976eaa8a40f7a48f73b
parent97cae82e53e83f7164af30eaf9044feb0aac427c (diff)
vm_page: Explain which we clear modify on migration of a non-dirty page
-rw-r--r--vm/vm_page.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm/vm_page.c b/vm/vm_page.c
index 4fde0759..00edb3c6 100644
--- a/vm/vm_page.c
+++ b/vm/vm_page.c
@@ -1027,6 +1027,8 @@ vm_page_seg_balance_page(struct vm_page_seg *seg,
vm_page_copy(src, dest);
if (!src->dirty) {
+ /* Avoid spuriously thinking the page is now dirty just because we have
+ * copied the data into it just above. */
pmap_clear_modify(dest->phys_addr);
}