]> git.baikalelectronics.ru Git - kernel.git/commit
mm/thp: use the correct function when updating access flags
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Thu, 6 Jun 2013 07:20:34 +0000 (00:20 -0700)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 20 Jun 2013 06:55:06 +0000 (16:55 +1000)
commitcf50065fd5b44775880dbe444848cc9e2d884b13
tree25d4a836ceaba9530ae01d2fd390d5450b0b260a
parent4534a5e70c544250097bed78486e3afa83dc91df
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>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
mm/huge_memory.c