diff options
author | Johannes Weiner <hannes@cmpxchg.org> | 2017-05-03 17:52:00 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-05-03 18:52:07 -0400 |
commit | 15038d0de9eca33f66bc1fed4243914906e04de4 (patch) | |
tree | 3e90905951527a79e880f6e19f8a798f21bc2e39 /mm/migrate.c | |
parent | 047d72c30eedcb953222810f1e7dcaae663aa452 (diff) |
mm: remove unnecessary reclaimability check from NUMA balancing target
NUMA balancing already checks the watermarks of the target node to
decide whether it's a suitable balancing target. Whether the node is
reclaimable or not is irrelevant when we don't intend to reclaim.
Link: http://lkml.kernel.org/r/20170228214007.5621-5-hannes@cmpxchg.org
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Hillf Danton <hillf.zj@alibaba-inc.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Jia He <hejianet@gmail.com>
Cc: Mel Gorman <mgorman@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/migrate.c')
-rw-r--r-- | mm/migrate.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/mm/migrate.c b/mm/migrate.c index 738f1d5f8350..5c5df09ac962 100644 --- a/mm/migrate.c +++ b/mm/migrate.c | |||
@@ -1722,9 +1722,6 @@ static bool migrate_balanced_pgdat(struct pglist_data *pgdat, | |||
1722 | { | 1722 | { |
1723 | int z; | 1723 | int z; |
1724 | 1724 | ||
1725 | if (!pgdat_reclaimable(pgdat)) | ||
1726 | return false; | ||
1727 | |||
1728 | for (z = pgdat->nr_zones - 1; z >= 0; z--) { | 1725 | for (z = pgdat->nr_zones - 1; z >= 0; z--) { |
1729 | struct zone *zone = pgdat->node_zones + z; | 1726 | struct zone *zone = pgdat->node_zones + z; |
1730 | 1727 | ||