sparc: gup_pte_range() support THP based tail recounting
authorAndrea Arcangeli <[email protected]>
Wed, 2 Nov 2011 20:37:31 +0000 (13:37 -0700)
committerLinus Torvalds <[email protected]>
Wed, 2 Nov 2011 23:06:58 +0000 (16:06 -0700)
commite0d85a366c2300efd230ef82a9b22110b0658331
tree4965cd894ac64947afc7fbb7f5a0303c99e76b28
parent0693bc9ce2cc4f6a1b9c3c05790fc149a74c0b87
sparc: gup_pte_range() support THP based tail recounting

Up to this point the code assumed old refcounting for hugepages (pre-thp).
 This updates the code directly to the thp mapcount tail page refcounting.

Signed-off-by: Andrea Arcangeli <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: KOSAKI Motohiro <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: David Gibson <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
Cc: Heiko Carstens <[email protected]>
Acked-by: David Miller <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/sparc/mm/gup.c