]> git.baikalelectronics.ru Git - kernel.git/commit
mm: improve find_lock_page
authorNick Piggin <npiggin@suse.de>
Tue, 16 Oct 2007 08:24:41 +0000 (01:24 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 16 Oct 2007 16:42:53 +0000 (09:42 -0700)
commit035cfaf39cdf576f79bceec5e5b8cbd632b6c596
treeae1804a34f314be18865add063d660cf783e45be
parentca9b989e754188a16da0f5720b3cab92645de988
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>
mm/filemap.c