[PATCH] mm: unbloat get_futex_key
authorHugh Dickins <hugh@veritas.com>
Wed, 23 Nov 2005 21:37:38 +0000 (13:37 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 24 Nov 2005 00:08:38 +0000 (16:08 -0800)
commitcc3327e7dfc16a9a3e164075234c869867a59e45
treed120c13540a7fa4769c0bf53eb12628a76366631
parent7b6ac9dffe6f4dd8776908b234ac1410ed15f112
[PATCH] mm: unbloat get_futex_key

The follow_page changes in get_futex_key have left it with two almost
identical blocks, when handling the rare case of a futex in a nonlinear vma.
get_user_pages will itself do that follow_page, and its additional
find_extend_vma is hardly any overhead since the vma is already cached.  Let's
just delete the follow_page block and let get_user_pages do it.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/futex.c