mm: hugetlbfs: move the put/get_page slab and hugetlbfs optimization in a faster...
authorAndrea Arcangeli <[email protected]>
Tue, 21 Jan 2014 23:48:51 +0000 (15:48 -0800)
committerLinus Torvalds <[email protected]>
Wed, 22 Jan 2014 00:19:43 +0000 (16:19 -0800)
commitebf360f9bb957f68e19e88f5067c015997dc26a6
treed8727be798034e9b045d28cab2f079386ce0d5f9
parenta0368d4e48fc9ad65a66f6819a801f3f542b4f0f
mm: hugetlbfs: move the put/get_page slab and hugetlbfs optimization in a faster path

We don't actually need a reference on the head page in the slab and
hugetlbfs paths, as long as we add a smp_rmb() which should be faster
than get_page_unless_zero.

[[email protected]: fix typo in comment]
Signed-off-by: Andrea Arcangeli <[email protected]>
Cc: Khalid Aziz <[email protected]>
Cc: Pravin Shelar <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Ben Hutchings <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Minchan Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/swap.c