commit | 54616fdac487a0bc822a63a7f2d5e0c7e492e92f | [log] [tgz] |
---|---|---|
author | Caspar Zhang <caspar@casparzhang.com> | Mon Feb 20 20:10:02 2012 +0800 |
committer | Caspar Zhang <caspar@casparzhang.com> | Tue Feb 21 13:20:27 2012 +0800 |
tree | 2d703ecea65b91278919f99cc83dc2445fe43d18 | |
parent | 6639c38640383c3722b8ab4a4c896da26d8dfe9b [diff] |
mm: fix possible node missing in write_cpusets If a system has noncontinuous nodes, or the node doesn't start from 0, write_cpusets() function may fail because it hard-coded second node as "node1". This patch fixes the function by fetching second node number from the stored array. Tested-by: Caspar Zhang <caspar@casparzhang.com> Signed-off-by: Caspar Zhang <caspar@casparzhang.com> Acked-by: Zhouping Liu <zliu@redhat.com>