mm/swapfile: delete outdated pte_offset_map() comment
authorHugh Dickins <hughd@google.com>
Tue, 20 Jun 2023 06:50:00 +0000 (23:50 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 23 Jun 2023 23:59:27 +0000 (16:59 -0700)
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/9022632b-ba9d-8cb0-c25-4be9786481b5@google.com
Signed-off-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/swapfile.c

index a6945c2e0d03ad402b29b3d6edf58e79cca4fa16..92ed7cba22689febfbbc6dd242b6eb249ff08ed0 100644 (file)
@@ -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;