]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mm/thp: use the correct function when updating access flags
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Thu, 9 May 2013 23:57:15 +0000 (09:57 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 21 May 2013 04:17:40 +0000 (14:17 +1000)
commitce58e2735ea2de9597479f49e7997a40461e6138
tree2028e09b5b7dafd4d9fd2ac023852171f35dcde4
parent73439b2e30721e90d25c90610dde12ae85ba75ec
mm/thp: use the correct function when updating access flags

We should use pmdp_set_access_flags to update access flags.  Archs like
powerpc use extra checks(_PAGE_BUSY) when updating a hugepage PTE.  A
set_pmd_at doesn't do those checks.  We should use set_pmd_at only when
updating a none hugepage PTE.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>a
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/huge_memory.c