]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: Count the number of pages affected in change_protection()
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Wed, 31 Oct 2012 12:56:08 +0000 (13:56 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 19 Nov 2012 01:15:35 +0000 (02:15 +0100)
commit9bf42d64a2d0b6b83248c4f42b01dcfdb30aceb6
tree219322cedd16589def375c6d5351092362545135
parent0ba7f8f07bd89f69e4a877ad2f846f5774ca15c1
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