* 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;
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) {
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
*/