]> 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>
Wed, 19 Jun 2013 00:05:56 +0000 (10:05 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:12:58 +0000 (17:12 +1000)
commit5fdca13c18dbab4ec6fd7ceed9d5c8b853beecbc
tree2af0543306a7fbf36a0bfe8bec2702bd1067dcb9
parentf7694b68826e2259069d14f201a54be2db7cdd47
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