summaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2016-03-17 17:19:47 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-03-17 18:09:34 -0400
commit756a025f00091918d9d09ca3229defb160b409c0 (patch)
treed4a6914597ef4b10870a7983bb61cd595e7094a2 /mm/page_alloc.c
parent598d80914e84fa79580850530f5d4a50a99bf4f5 (diff)
mm: coalesce split strings
Kernel style prefers a single string over split strings when the string is 'user-visible'. Miscellanea: - Add a missing newline - Realign arguments Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Tejun Heo <tj@kernel.org> [percpu] Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c37
1 files changed, 17 insertions, 20 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 30f01c6f6b88..42cf199652a5 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -4074,8 +4074,7 @@ static int __parse_numa_zonelist_order(char *s)
4074 user_zonelist_order = ZONELIST_ORDER_ZONE; 4074 user_zonelist_order = ZONELIST_ORDER_ZONE;
4075 } else { 4075 } else {
4076 printk(KERN_WARNING 4076 printk(KERN_WARNING
4077 "Ignoring invalid numa_zonelist_order value: " 4077 "Ignoring invalid numa_zonelist_order value: %s\n", s);
4078 "%s\n", s);
4079 return -EINVAL; 4078 return -EINVAL;
4080 } 4079 }
4081 return 0; 4080 return 0;
@@ -4539,12 +4538,11 @@ void __ref build_all_zonelists(pg_data_t *pgdat, struct zone *zone)
4539 else 4538 else
4540 page_group_by_mobility_disabled = 0; 4539 page_group_by_mobility_disabled = 0;
4541 4540
4542 pr_info("Built %i zonelists in %s order, mobility grouping %s. " 4541 pr_info("Built %i zonelists in %s order, mobility grouping %s. Total pages: %ld\n",
4543 "Total pages: %ld\n", 4542 nr_online_nodes,
4544 nr_online_nodes, 4543 zonelist_order_name[current_zonelist_order],
4545 zonelist_order_name[current_zonelist_order], 4544 page_group_by_mobility_disabled ? "off" : "on",
4546 page_group_by_mobility_disabled ? "off" : "on", 4545 vm_total_pages);
4547 vm_total_pages);
4548#ifdef CONFIG_NUMA 4546#ifdef CONFIG_NUMA
4549 pr_info("Policy zone: %s\n", zone_names[policy_zone]); 4547 pr_info("Policy zone: %s\n", zone_names[policy_zone]);
4550#endif 4548#endif
@@ -6142,22 +6140,21 @@ void __init mem_init_print_info(const char *str)
6142 6140
6143#undef adj_init_size 6141#undef adj_init_size
6144 6142
6145 pr_info("Memory: %luK/%luK available " 6143 pr_info("Memory: %luK/%luK available (%luK kernel code, %luK rwdata, %luK rodata, %luK init, %luK bss, %luK reserved, %luK cma-reserved"
6146 "(%luK kernel code, %luK rwdata, %luK rodata, "
6147 "%luK init, %luK bss, %luK reserved, %luK cma-reserved"
6148#ifdef CONFIG_HIGHMEM 6144#ifdef CONFIG_HIGHMEM
6149 ", %luK highmem" 6145 ", %luK highmem"
6150#endif 6146#endif
6151 "%s%s)\n", 6147 "%s%s)\n",
6152 nr_free_pages() << (PAGE_SHIFT-10), physpages << (PAGE_SHIFT-10), 6148 nr_free_pages() << (PAGE_SHIFT - 10),
6153 codesize >> 10, datasize >> 10, rosize >> 10, 6149 physpages << (PAGE_SHIFT - 10),
6154 (init_data_size + init_code_size) >> 10, bss_size >> 10, 6150 codesize >> 10, datasize >> 10, rosize >> 10,
6155 (physpages - totalram_pages - totalcma_pages) << (PAGE_SHIFT-10), 6151 (init_data_size + init_code_size) >> 10, bss_size >> 10,
6156 totalcma_pages << (PAGE_SHIFT-10), 6152 (physpages - totalram_pages - totalcma_pages) << (PAGE_SHIFT - 10),
6153 totalcma_pages << (PAGE_SHIFT - 10),
6157#ifdef CONFIG_HIGHMEM 6154#ifdef CONFIG_HIGHMEM
6158 totalhigh_pages << (PAGE_SHIFT-10), 6155 totalhigh_pages << (PAGE_SHIFT - 10),
6159#endif 6156#endif
6160 str ? ", " : "", str ? str : ""); 6157 str ? ", " : "", str ? str : "");
6161} 6158}
6162 6159
6163/** 6160/**