]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/migration: Improve migrate_misplaced_page()
authorMel Gorman <mgorman@suse.de>
Fri, 16 Nov 2012 11:22:23 +0000 (11:22 +0000)
committerIngo Molnar <mingo@kernel.org>
Mon, 19 Nov 2012 02:31:22 +0000 (03:31 +0100)
commit292c8cf52d4c65e1f8744e5c7ce774516d868ee8
treeab27e3b082b44eba34323f6c456d4c23165a76f6
parentc90dff014eee302965880d6d8969fda4eace2b17
mm/migration: Improve migrate_misplaced_page()

Fix, improve and clean up migrate_misplaced_page() to
reuse migrate_pages() and to check for zone watermarks
to make sure we don't overload the node.

This was originally based on Peter's patch "mm/migrate: Introduce
migrate_misplaced_page()" but borrows extremely heavily from Andrea's
"autonuma: memory follows CPU algorithm and task/mm_autonuma stats
collection".

Based-on-work-by: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
Based-on-work-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Based-on-work-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Mel Gorman <mgorman@suse.de>
Reviewed-by: Rik van Riel <riel@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Hugh Dickins <hughd@google.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Linux-MM <linux-mm@kvack.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Link: http://lkml.kernel.org/r/1353064973-26082-14-git-send-email-mgorman@suse.de
[ Adapted to the numa/core tree. Kept Mel's patch separate to retain
  original authorship for the authors. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/migrate_mode.h
mm/memory.c
mm/migrate.c