mm: numa: clear numa hinting information on mprotect
authorMel Gorman <mgorman@suse.de>
Thu, 19 Dec 2013 01:08:41 +0000 (17:08 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 19 Dec 2013 03:04:51 +0000 (19:04 -0800)
commit1667918b6483b12a6496bf54151b827b8235d7b1
tree05fbf14be003948a074fff97950c7764f6bf9c80
parent3c67f474558748b604e247d92b55dfe89654c81d
mm: numa: clear numa hinting information on mprotect

On a protection change it is no longer clear if the page should be still
accessible.  This patch clears the NUMA hinting fault bits on a
protection change.

Signed-off-by: Mel Gorman <mgorman@suse.de>
Reviewed-by: Rik van Riel <riel@redhat.com>
Cc: Alex Thorlton <athorlton@sgi.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/huge_memory.c
mm/mprotect.c