]> git.karo-electronics.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, 23 May 2013 00:37:08 +0000 (10:37 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 27 May 2013 06:08:59 +0000 (16:08 +1000)
commit69717661d409d1feda1c370228e52b2e91717c93
tree0737e68f6a570951a22fa433930efe4fc3d60185
parent44da08d0345e9ec94b51b3e2356fc6c7ea940e64
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