diff options
author | Nikita Danilov <nikita@clusterfs.com> | 2006-01-06 09:11:08 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-06 17:33:26 +0100 |
commit | bbfbb7cec9dd7266534b2b4b9c8be2fa425bbfc9 (patch) | |
tree | d1949123224d1674a7192743d188ff652c964663 /include/asm-i386/unistd.h | |
parent | [PATCH] FRV: Clean up bootmem allocator's page freeing algorithm (diff) | |
download | linux-bbfbb7cec9dd7266534b2b4b9c8be2fa425bbfc9.tar.xz linux-bbfbb7cec9dd7266534b2b4b9c8be2fa425bbfc9.zip |
[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 <danilov@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-i386/unistd.h')
0 files changed, 0 insertions, 0 deletions