Zhang Zhen ed2f240094 memory-hotplug: add sysfs valid_zones attribute
Currently memory-hotplug has two limits:

1. If the memory block is in ZONE_NORMAL, you can change it to
   ZONE_MOVABLE, but this memory block must be adjacent to ZONE_MOVABLE.

2. If the memory block is in ZONE_MOVABLE, you can change it to
   ZONE_NORMAL, but this memory block must be adjacent to ZONE_NORMAL.

With this patch, we can easy to know a memory block can be onlined to
which zone, and don't need to know the above two limits.

Updated the related Documentation.

[akpm@linux-foundation.org: use conventional comment layout]
[akpm@linux-foundation.org: fix build with CONFIG_MEMORY_HOTREMOVE=n]
[akpm@linux-foundation.org: remove unused local zone_prev]
Signed-off-by: Zhang Zhen <zhenzhang.zhang@huawei.com>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Toshi Kani <toshi.kani@hp.com>
Cc: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Wang Nan <wangnan0@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-10-09 22:25:52 -04:00
..
2014-10-08 17:37:16 -04:00
2014-10-08 17:37:16 -04:00
2014-10-07 20:39:25 -04:00
2014-10-08 17:37:16 -04:00
2014-09-22 16:48:47 +09:00
2014-10-08 06:50:18 -04:00
2014-09-22 07:54:10 -07:00
2014-10-03 11:24:46 -07:00
2014-10-08 05:27:39 -04:00
2014-10-08 17:37:16 -04:00
2014-10-07 21:29:18 -04:00
2014-10-08 17:06:53 -04:00
2014-09-06 12:12:09 -07:00
2014-09-24 09:46:29 -07:00
2014-10-08 17:37:16 -04:00
2014-10-07 21:29:18 -04:00
2014-10-08 17:37:16 -04:00
2014-09-11 16:52:29 -07:00