]> Git Repo - linux.git/commit
[PATCH] mm: rmap with inner ptlock
authorHugh Dickins <[email protected]>
Sun, 30 Oct 2005 01:16:31 +0000 (18:16 -0700)
committerLinus Torvalds <[email protected]>
Sun, 30 Oct 2005 04:40:41 +0000 (21:40 -0700)
commitc0718806cf955d5eb51ea77bffb5b21d9bba4972
treebd29659bbff68604127439ec8144230a40772621
parent67b02f119df50ffad5a4e9e53ea4c896535862cd
[PATCH] mm: rmap with inner ptlock

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: Hugh Dickins <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/rmap.h
mm/filemap_xip.c
mm/rmap.c
This page took 0.053139 seconds and 4 git commands to generate.