Skip to content

Commit 15038d0

Browse files
hnaztorvalds
authored andcommitted
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>
1 parent 047d72c commit 15038d0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

mm/migrate.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1722,9 +1722,6 @@ static bool migrate_balanced_pgdat(struct pglist_data *pgdat,
17221722
{
17231723
int z;
17241724

1725-
if (!pgdat_reclaimable(pgdat))
1726-
return false;
1727-
17281725
for (z = pgdat->nr_zones - 1; z >= 0; z--) {
17291726
struct zone *zone = pgdat->node_zones + z;
17301727

0 commit comments

Comments
 (0)