]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
mm: Count the number of pages affected in change_protection()
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 19 Nov 2012 02:14:23 +0000 (03:14 +0100)
committerMel Gorman <mgorman@suse.de>
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 <mingo@kernel.org>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Hugh Dickins <hughd@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/hugetlb.h
include/linux/mm.h
mm/hugetlb.c
mm/mprotect.c