summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2026-05-26 20:56:48 +0100
committerAndrew Morton <akpm@linux-foundation.org>2026-06-04 14:45:07 -0700
commit088a2353d714591d2eadb9870767910b9c67b32d (patch)
tree023bba4709aa6180cc3751fa9f6b4b0baa0a03ee
parent3bf1c285dc406067eae5b3a7072afad81ad4a4fc (diff)
downloadlinux-next-088a2353d714591d2eadb9870767910b9c67b32d.tar.gz
linux-next-088a2353d714591d2eadb9870767910b9c67b32d.zip
mm: remove mentions of PageWriteback
Update two comments to refer to writeback in general instead of the specific flag. Convert the large comment in memory.c to be entirely folio-based. Link: https://lore.kernel.org/20260526195650.353196-1-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--mm/compaction.c2
-rw-r--r--mm/memory.c20
-rw-r--r--mm/migrate.c2
3 files changed, 12 insertions, 12 deletions
diff --git a/mm/compaction.c b/mm/compaction.c
index 168e63940b78..8f664fb09f24 100644
--- a/mm/compaction.c
+++ b/mm/compaction.c
@@ -1123,7 +1123,7 @@ isolate_migratepages_block(struct compact_control *cc, unsigned long low_pfn,
* To minimise LRU disruption, the caller can indicate with
* ISOLATE_ASYNC_MIGRATE that it only wants to isolate pages
* it will be able to migrate without blocking - clean pages
- * for the most part. PageWriteback would require blocking.
+ * for the most part. Writeback would require blocking.
*/
if ((mode & ISOLATE_ASYNC_MIGRATE) && folio_test_writeback(folio))
goto isolate_fail_put;
diff --git a/mm/memory.c b/mm/memory.c
index 7c020995eafc..5a365492a9a2 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -5398,18 +5398,18 @@ static vm_fault_t __do_fault(struct vm_fault *vmf)
vm_fault_t ret;
/*
- * Preallocate pte before we take page_lock because this might lead to
- * deadlocks for memcg reclaim which waits for pages under writeback:
- * lock_page(A)
- * SetPageWriteback(A)
- * unlock_page(A)
- * lock_page(B)
- * lock_page(B)
+ * Preallocate pte before we take folio lock because this might lead to
+ * deadlocks for memcg reclaim which waits for folios under writeback:
+ * folio_lock(A)
+ * folio_set_writeback(A)
+ * folio_unlock(A)
+ * folio_lock(B)
+ * folio_lock(B)
* pte_alloc_one
* shrink_folio_list
- * wait_on_page_writeback(A)
- * SetPageWriteback(B)
- * unlock_page(B)
+ * folio_wait_writeback(A)
+ * folio_set_writeback(B)
+ * folio_unlock(B)
* # flush A, B to clear the writeback
*/
if (pmd_none(*vmf->pmd) && !vmf->prealloc_pte) {
diff --git a/mm/migrate.c b/mm/migrate.c
index 0c6a0ab6ecce..d8090cdda4f9 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -1256,7 +1256,7 @@ static int migrate_folio_unmap(new_folio_t get_new_folio,
if (folio_test_writeback(src)) {
/*
* Only in the case of a full synchronous migration is it
- * necessary to wait for PageWriteback. In the async case,
+ * necessary to wait for writeback. In the async case,
* the retry loop is too short and in the sync-light case,
* the overhead of stalling is too much
*/