aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Weiner <[email protected]>2017-05-03 14:52:00 -0700
committerLinus Torvalds <[email protected]>2017-05-03 15:52:07 -0700
commit15038d0de9eca33f66bc1fed4243914906e04de4 (patch)
tree3e90905951527a79e880f6e19f8a798f21bc2e39
parent047d72c30eedcb953222810f1e7dcaae663aa452 (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/[email protected] Signed-off-by: Johannes Weiner <[email protected]> Acked-by: Hillf Danton <[email protected]> Acked-by: Michal Hocko <[email protected]> Cc: Jia He <[email protected]> Cc: Mel Gorman <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--mm/migrate.c3
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,
{
int z;
- if (!pgdat_reclaimable(pgdat))
- return false;
-
for (z = pgdat->nr_zones - 1; z >= 0; z--) {
struct zone *zone = pgdat->node_zones + z;