diff options
author | Stephen Wilson <wilsons@start.ca> | 2011-05-24 20:12:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-25 11:39:33 -0400 |
commit | b1f72d1857bb0de19ce20a59f3f85e6dc47bdec8 (patch) | |
tree | 4ce7e448a81f3315bb8aece1b38fc3cd15a7cf6d /mm/mempolicy.c | |
parent | 29ea2f6982f1edc4302729116f2246dd7b45471d (diff) |
mm: remove MPOL_MF_STATS
Mapping statistics in a NUMA environment is now computed using the generic
walk_page_range() logic. Remove the old/equivalent functionality.
Signed-off-by: Stephen Wilson <wilsons@start.ca>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Lee Schermerhorn <lee.schermerhorn@hp.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mempolicy.c')
-rw-r--r-- | mm/mempolicy.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 945e85de2d4c..4e188766fd42 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c | |||
@@ -99,7 +99,6 @@ | |||
99 | /* Internal flags */ | 99 | /* Internal flags */ |
100 | #define MPOL_MF_DISCONTIG_OK (MPOL_MF_INTERNAL << 0) /* Skip checks for continuous vmas */ | 100 | #define MPOL_MF_DISCONTIG_OK (MPOL_MF_INTERNAL << 0) /* Skip checks for continuous vmas */ |
101 | #define MPOL_MF_INVERT (MPOL_MF_INTERNAL << 1) /* Invert check for nodemask */ | 101 | #define MPOL_MF_INVERT (MPOL_MF_INTERNAL << 1) /* Invert check for nodemask */ |
102 | #define MPOL_MF_STATS (MPOL_MF_INTERNAL << 2) /* Gather statistics */ | ||
103 | 102 | ||
104 | static struct kmem_cache *policy_cache; | 103 | static struct kmem_cache *policy_cache; |
105 | static struct kmem_cache *sn_cache; | 104 | static struct kmem_cache *sn_cache; |
@@ -492,9 +491,7 @@ static int check_pte_range(struct vm_area_struct *vma, pmd_t *pmd, | |||
492 | if (node_isset(nid, *nodes) == !!(flags & MPOL_MF_INVERT)) | 491 | if (node_isset(nid, *nodes) == !!(flags & MPOL_MF_INVERT)) |
493 | continue; | 492 | continue; |
494 | 493 | ||
495 | if (flags & MPOL_MF_STATS) | 494 | if (flags & (MPOL_MF_MOVE | MPOL_MF_MOVE_ALL)) |
496 | gather_stats(page, private, pte_dirty(*pte)); | ||
497 | else if (flags & (MPOL_MF_MOVE | MPOL_MF_MOVE_ALL)) | ||
498 | migrate_page_add(page, private, flags); | 495 | migrate_page_add(page, private, flags); |
499 | else | 496 | else |
500 | break; | 497 | break; |