]> git.karo-electronics.de Git - karo-tx-linux.git/commit
powerpc: remove superfluous PageTail checks on the pte gup_fast
authorAndrea Arcangeli <aarcange@redhat.com>
Mon, 24 Oct 2011 14:54:21 +0000 (01:54 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 25 Oct 2011 09:07:46 +0000 (20:07 +1100)
commitee5b1fa31cd9934fcce9e0a72ff5fe75387e04c5
tree8c498c34f8aa3d7c1a5a140c63480f6899f0bca1
parent700a0094874ec6c9064d1596c711f636634363d6
powerpc: remove superfluous PageTail checks on the pte gup_fast

This part of gup_fast doesn't seem capable of handling hugetlbfs ptes,
those should be handled by gup_hugepd only, so these checks are
superfluous.

Plus if this wasn't a noop, it would have oopsed because, the insistence
of using the speculative refcounting would trigger a VM_BUG_ON if a tail
page was encountered in the page_cache_get_speculative().

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Hugh Dickins <hughd@google.com>
Cc: Johannes Weiner <jweiner@redhat.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/powerpc/mm/gup.c