]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm, numa: avoid setting zone_reclaim_mode unless a node is sufficiently distant
authorDavid Rientjes <rientjes@google.com>
Thu, 25 Oct 2012 01:13:57 +0000 (12:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 25 Oct 2012 01:13:57 +0000 (12:13 +1100)
commit3adbc72c41a24409147ae53a77458c65e8823df6
tree7606fe2e85b196f4d1119534f5639a818217dba6
parent8f2187f416ff90ec7c9f0ff9d9d2abe7de9d8201
mm, numa: avoid setting zone_reclaim_mode unless a node is sufficiently distant

Commit 957f822a0ab9 ("mm, numa: reclaim from all nodes within reclaim
distance") caused zone_reclaim_mode to be set for all systems where two
nodes are within RECLAIM_DISTANCE of each other.  This is the opposite of
what we actually want: zone_reclaim_mode should be set if two nodes are
sufficiently distant.

Signed-off-by: David Rientjes <rientjes@google.com>
Reported-by: Julian Wollrath <jwollrath@web.de>
Tested-by: Julian Wollrath <jwollrath@web.de>
Cc: Hugh Dickins <hughd@google.com>
Cc: Patrik Kullman <patrik.kullman@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c