diff options
author | David Rientjes <rientjes@google.com> | 2018-04-05 19:23:12 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-04-06 00:36:25 -0400 |
commit | 7f16f91fdfce694493e539bff17acaedaebc366d (patch) | |
tree | f5969654111f387fb4dc21ee00700c9ed8258e00 /mm/page_alloc.c | |
parent | a5c6d6509342785bef53bf9508e1842b303f1878 (diff) |
mm, page_alloc: move mirrored_kernelcore to __meminitdata
mirrored_kernelcore can be in __meminitdata, so move it there.
At the same time, fixup section specifiers to be after the name of the
variable per checkpatch.
Link: http://lkml.kernel.org/r/alpine.DEB.2.10.1802121623280.179479@chino.kir.corp.google.com
Signed-off-by: David Rientjes <rientjes@google.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Mel Gorman <mgorman@suse.de>
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.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 766ffb5fa94b..86b7f0430e02 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -265,19 +265,19 @@ int min_free_kbytes = 1024; | |||
265 | int user_min_free_kbytes = -1; | 265 | int user_min_free_kbytes = -1; |
266 | int watermark_scale_factor = 10; | 266 | int watermark_scale_factor = 10; |
267 | 267 | ||
268 | static unsigned long __meminitdata nr_kernel_pages; | 268 | static unsigned long nr_kernel_pages __meminitdata; |
269 | static unsigned long __meminitdata nr_all_pages; | 269 | static unsigned long nr_all_pages __meminitdata; |
270 | static unsigned long __meminitdata dma_reserve; | 270 | static unsigned long dma_reserve __meminitdata; |
271 | 271 | ||
272 | #ifdef CONFIG_HAVE_MEMBLOCK_NODE_MAP | 272 | #ifdef CONFIG_HAVE_MEMBLOCK_NODE_MAP |
273 | static unsigned long __meminitdata arch_zone_lowest_possible_pfn[MAX_NR_ZONES]; | 273 | static unsigned long arch_zone_lowest_possible_pfn[MAX_NR_ZONES] __meminitdata; |
274 | static unsigned long __meminitdata arch_zone_highest_possible_pfn[MAX_NR_ZONES]; | 274 | static unsigned long arch_zone_highest_possible_pfn[MAX_NR_ZONES] __meminitdata; |
275 | static unsigned long __initdata required_kernelcore; | 275 | static unsigned long required_kernelcore __initdata; |
276 | static unsigned long required_kernelcore_percent __initdata; | 276 | static unsigned long required_kernelcore_percent __initdata; |
277 | static unsigned long __initdata required_movablecore; | 277 | static unsigned long required_movablecore __initdata; |
278 | static unsigned long required_movablecore_percent __initdata; | 278 | static unsigned long required_movablecore_percent __initdata; |
279 | static unsigned long __meminitdata zone_movable_pfn[MAX_NUMNODES]; | 279 | static unsigned long zone_movable_pfn[MAX_NUMNODES] __meminitdata; |
280 | static bool mirrored_kernelcore; | 280 | static bool mirrored_kernelcore __meminitdata; |
281 | 281 | ||
282 | /* movable_zone is the "real" zone pages in ZONE_MOVABLE are taken from */ | 282 | /* movable_zone is the "real" zone pages in ZONE_MOVABLE are taken from */ |
283 | int movable_zone; | 283 | int movable_zone; |