Commit 914a051654c5401cb216a939e214e17ec018b6a9
Committed by
Linus Torvalds
1 parent
19938e350a
Exists in
smarct4x-processor-sdk-04.01.00.06
and in
1 other branch
mm: nobootmem: move the comment of free_all_bootmem
Commit b4def3509d18 ("mm, nobootmem: clean-up of free_low_memory_core_early()") removed the unnecessary nodeid argument, after that, this comment becomes more confused. We should move it to the right place. Fixes: b4def3509d18c1db9 ("mm, nobootmem: clean-up of free_low_memory_core_early()") Link: http://lkml.kernel.org/r/1473996082-14603-1-git-send-email-wanlong.gao@gmail.com Signed-off-by: Wanlong Gao <wanlong.gao@gmail.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 5 additions and 5 deletions Side-by-side Diff
mm/nobootmem.c
| ... | ... | @@ -137,6 +137,11 @@ |
| 137 | 137 | for_each_reserved_mem_region(i, &start, &end) |
| 138 | 138 | reserve_bootmem_region(start, end); |
| 139 | 139 | |
| 140 | + /* | |
| 141 | + * We need to use NUMA_NO_NODE instead of NODE_DATA(0)->node_id | |
| 142 | + * because in some case like Node0 doesn't have RAM installed | |
| 143 | + * low ram will be on Node1 | |
| 144 | + */ | |
| 140 | 145 | for_each_free_mem_range(i, NUMA_NO_NODE, MEMBLOCK_NONE, &start, &end, |
| 141 | 146 | NULL) |
| 142 | 147 | count += __free_memory_core(start, end); |
| ... | ... | @@ -194,11 +199,6 @@ |
| 194 | 199 | |
| 195 | 200 | reset_all_zones_managed_pages(); |
| 196 | 201 | |
| 197 | - /* | |
| 198 | - * We need to use NUMA_NO_NODE instead of NODE_DATA(0)->node_id | |
| 199 | - * because in some case like Node0 doesn't have RAM installed | |
| 200 | - * low ram will be on Node1 | |
| 201 | - */ | |
| 202 | 202 | pages = free_low_memory_core_early(); |
| 203 | 203 | totalram_pages += pages; |
| 204 | 204 |