mm: Count the number of pages affected in change_protection()
authorPeter Zijlstra <[email protected]>
Mon, 19 Nov 2012 02:14:23 +0000 (03:14 +0100)
committerMel Gorman <[email protected]>
Tue, 11 Dec 2012 14:28:34 +0000 (14:28 +0000)
commit7da4d641c58d201c3cc1835c05ca1a7fa26f0856
treebf40cc40433383ee94559ea2ef19a282dead358f
parent4fd017708c4a067da51a2b5cf8aedddf4e840b1f
mm: Count the number of pages affected in change_protection()

This will be used for three kinds of purposes:

 - to optimize mprotect()

 - to speed up working set scanning for working set areas that
   have not been touched

 - to more accurately scan per real working set

No change in functionality from this patch.

Suggested-by: Ingo Molnar <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
include/linux/hugetlb.h
include/linux/mm.h
mm/hugetlb.c
mm/mprotect.c