aboutsummaryrefslogtreecommitdiffstats
path: root/lib/genalloc.c
diff options
context:
space:
mode:
authorZhang Zhen <[email protected]>2014-10-09 22:26:31 +0000
committerLinus Torvalds <[email protected]>2014-10-10 02:25:52 +0000
commited2f240094f900833ac06f533ab8bbcf0a1e8199 (patch)
treea29d18bd9463645fa6ecdab3dd90945f861097d2 /lib/genalloc.c
parentmm/mmap.c: whitespace fixes (diff)
downloadkernel-ed2f240094f900833ac06f533ab8bbcf0a1e8199.tar.gz
kernel-ed2f240094f900833ac06f533ab8bbcf0a1e8199.zip
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. [[email protected]: use conventional comment layout] [[email protected]: fix build with CONFIG_MEMORY_HOTREMOVE=n] [[email protected]: remove unused local zone_prev] Signed-off-by: Zhang Zhen <[email protected]> Cc: Dave Hansen <[email protected]> Cc: David Rientjes <[email protected]> Cc: Toshi Kani <[email protected]> Cc: Yasuaki Ishimatsu <[email protected]> Cc: Naoya Horiguchi <[email protected]> Cc: Wang Nan <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/genalloc.c')
0 files changed, 0 insertions, 0 deletions