From: Nikita Danilov Date: Fri, 6 Jan 2006 08:11:08 +0000 (-0800) Subject: [PATCH] find_lock_page(): call __lock_page() directly. X-Git-Tag: v2.6.16-rc1~936^2~252 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbfbb7cec9dd7266534b2b4b9c8be2fa425bbfc9;p=pandora-kernel.git [PATCH] find_lock_page(): call __lock_page() directly. As find_lock_page() already checks with TestSetPageLocked() that page is locked, there is no need to call lock_page() that will try-lock page again (chances of page being unlocked in between are small). Call __lock_page() directly, this saves one atomic operation. Also, mark truncate-while-slept path as unlikely while we are here. (akpm: ug. But this is actually a common path for normal old read()s against a page which is under readahead I/O so ho-hum.) Signed-off-by: Nikita Danilov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed