summaryrefslogtreecommitdiffstats
path: root/mm/pagewalk.c
diff options
context:
space:
mode:
authorMiao Xie <miaox@cn.fujitsu.com>2008-11-20 00:36:30 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2008-11-20 03:49:58 +0100
commitf481891fdc49d3d1b8a9674a1825d183069a805f (patch)
tree4f027a1321dcd06165394d0a23e49df51c8befc1 /mm/pagewalk.c
parenteCryptfs: Allocate up to two scatterlists for crypto ops on keys (diff)
downloadlinux-f481891fdc49d3d1b8a9674a1825d183069a805f.tar.xz
linux-f481891fdc49d3d1b8a9674a1825d183069a805f.zip
cpuset: update top cpuset's mems after adding a node
After adding a node into the machine, top cpuset's mems isn't updated. By reviewing the code, we found that the update function cpuset_track_online_nodes() was invoked after node_states[N_ONLINE] changes. It is wrong because N_ONLINE just means node has pgdat, and if node has/added memory, we use N_HIGH_MEMORY. So, We should invoke the update function after node_states[N_HIGH_MEMORY] changes, just like its commit says. This patch fixes it. And we use notifier of memory hotplug instead of direct calling of cpuset_track_online_nodes(). Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> Acked-by: Yasunori Goto <y-goto@jp.fujitsu.com> Cc: David Rientjes <rientjes@google.com> Cc: Paul Menage <menage@google.com Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/pagewalk.c')
0 files changed, 0 insertions, 0 deletions