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/[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]>
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)