From 23618a78f270438829140dfa165790d33f2d924b Mon Sep 17 00:00:00 2001 From: Hugh Dickins Date: Wed, 23 Nov 2005 13:37:38 -0800 Subject: [PATCH] --- yaml --- r: 14644 b: refs/heads/master c: cc3327e7dfc16a9a3e164075234c869867a59e45 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/kernel/futex.c | 15 --------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/[refs] b/[refs] index 66b6dffe4240..1116c6c5b696 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7b6ac9dffe6f4dd8776908b234ac1410ed15f112 +refs/heads/master: cc3327e7dfc16a9a3e164075234c869867a59e45 diff --git a/trunk/kernel/futex.c b/trunk/kernel/futex.c index aca8d10704f6..5872e3507f35 100644 --- a/trunk/kernel/futex.c +++ b/trunk/kernel/futex.c @@ -201,21 +201,6 @@ static int get_futex_key(unsigned long uaddr, union futex_key *key) * from swap. But that's a lot of code to duplicate here * for a rare case, so we simply fetch the page. */ - - /* - * Do a quick atomic lookup first - this is the fastpath. - */ - page = follow_page(mm, uaddr, FOLL_TOUCH|FOLL_GET); - if (likely(page != NULL)) { - key->shared.pgoff = - page->index << (PAGE_CACHE_SHIFT - PAGE_SHIFT); - put_page(page); - return 0; - } - - /* - * Do it the general way. - */ err = get_user_pages(current, mm, uaddr, 1, 0, 0, &page, NULL); if (err >= 0) { key->shared.pgoff =