]> git.baikalelectronics.ru Git - kernel.git/commit
sparc64: Fix get_user_pages_fast() wrt. THP.
authorDavid S. Miller <davem@davemloft.net>
Wed, 13 Feb 2013 20:21:06 +0000 (12:21 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Feb 2013 20:22:14 +0000 (12:22 -0800)
commit09bc6ac3a1288d10d9cae30f2301b0ac8e90b166
treece147ee36f1117dddeac5e1ba53eab9986b1f47b
parentab7409d87075950b61d0eb788278f80a085d6268
sparc64: Fix get_user_pages_fast() wrt. THP.

Mostly mirrors the s390 logic, as unlike x86 we don't need the
SetPageReferenced() bits.

On sparc64 we also lack a user/privileged bit in the huge PMDs.

In order to make this work for THP and non-THP builds, some header
file adjustments were necessary.  Namely, provide the PMD_HUGE_* bit
defines and the pmd_large() inline unconditionally rather than
protected by TRANSPARENT_HUGEPAGE.

Reported-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/pgtable_64.h
arch/sparc/mm/gup.c