aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugh Dickins <[email protected]>2023-06-19 23:50:00 -0700
committerAndrew Morton <[email protected]>2023-06-23 16:59:27 -0700
commit3fda49e89f1702df6bb6a2470076b1a7bf3a29de (patch)
treea4810807eef58d42d91fdfea0a785babec876798
parent61167ad5fecdeaa037f3df1ba354dddd5f66a1ed (diff)
mm/swapfile: delete outdated pte_offset_map() comment
Delete a triply out-of-date comment from add_swap_count_continuation(): 1. vmalloc_to_page() changed from pte_offset_map() to pte_offset_kernel() 2. pte_offset_map() changed from using kmap_atomic() to kmap_local_page() 3. kmap_atomic() changed from using fixed FIX_KMAP addresses in 2.6.37. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Hugh Dickins <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
-rw-r--r--mm/swapfile.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/mm/swapfile.c b/mm/swapfile.c
index a6945c2e0d03..92ed7cba2268 100644
--- a/mm/swapfile.c
+++ b/mm/swapfile.c
@@ -3456,11 +3456,6 @@ int add_swap_count_continuation(swp_entry_t entry, gfp_t gfp_mask)
goto out;
}
- /*
- * We are fortunate that although vmalloc_to_page uses pte_offset_map,
- * no architecture is using highmem pages for kernel page tables: so it
- * will not corrupt the GFP_ATOMIC caller's atomic page table kmaps.
- */
head = vmalloc_to_page(si->swap_map + offset);
offset &= ~PAGE_MASK;