diff options
author | Nick Piggin <npiggin@suse.de> | 2007-10-16 10:24:41 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 18:42:53 +0200 |
commit | 45726cb43d11b288c58243a26010f397054222f0 (patch) | |
tree | ae1804a34f314be18865add063d660cf783e45be /mm/swap_state.c | |
parent | mm: use lockless radix-tree probe (diff) | |
download | linux-45726cb43d11b288c58243a26010f397054222f0.tar.xz linux-45726cb43d11b288c58243a26010f397054222f0.zip |
mm: improve find_lock_page
find_lock_page does not need to recheck ->index because if the page is in the
right mapping then the index must be the same. Also, tree_lock does not need
to be retaken after the page is locked in order to test that ->mapping has not
changed, because holding the page lock pins its mapping.
Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/swap_state.c')
0 files changed, 0 insertions, 0 deletions