Skip to content
  • Hugh Dickins's avatar
    [PATCH] mm: rmap with inner ptlock · c0718806
    Hugh Dickins authored
    
    
    rmap's page_check_address descend without page_table_lock.  First just
    pte_offset_map in case there's no pte present worth locking for, then take
    page_table_lock for the full check, and pass ptl back to caller in the same
    style as pte_offset_map_lock.  __xip_unmap, page_referenced_one and
    try_to_unmap_one use pte_unmap_unlock.  try_to_unmap_cluster also.
    
    page_check_address reformatted to avoid progressive indentation.  No use is
    made of its one error code, return NULL when it fails.
    
    Signed-off-by: default avatarHugh Dickins <hugh@veritas.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    c0718806