summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAditya Sharma <adi.sharma@zohomail.in>2026-04-24 12:22:17 +0300
committerAndrew Morton <akpm@linux-foundation.org>2026-05-29 07:04:41 +0300
commit214f9ab72ce6e16120c20ad670389656f059e685 (patch)
tree5a8b5957a7f2a29980c628e59240651e4c283e5a /include/linux
parent5c5bc5e326fe4bcfe1c6f5c69a0b8df809bdc2e4 (diff)
downloadlinux-214f9ab72ce6e16120c20ad670389656f059e685.tar.xz
mm/memory: update stale locking comments for fault handlers
Update the comments for wp_page_copy(), do_wp_page(), do_swap_page(), do_anonymous_page(), __do_fault(), do_fault(), handle_pte_fault(), __handle_mm_fault(), and handle_mm_fault() to concisely clarify that they can be entered holding either the mmap_lock or the VMA lock, and that the lock may be released upon returning VM_FAULT_RETRY. Additionally, make the following corrections: - In do_anonymous_page(), correct the outdated claim that the function is entered with the PTE "mapped but not yet locked". Since handle_pte_fault() unmaps the empty PTE before routing to do_pte_missing(), the comment now correctly states it is entered with the PTE unmapped and unlocked. - In __do_fault(), update the stale reference from __lock_page_retry() to __folio_lock_or_retry(). Link: https://lore.kernel.org/20260424092217.263648-1-adi.sharma@zohomail.in Signed-off-by: Aditya Sharma <adi.sharma@zohomail.in> Acked-by: David Hildenbrand (Arm) <david@kernel.org> Cc: Liam Howlett <liam@infradead.org> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions