summaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 9f9623d690d6..a7a6aac95a6d 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -5925,7 +5925,7 @@ static unsigned long __paginginit calc_memmap_size(unsigned long spanned_pages,
5925 * the zone and SPARSEMEM is in use. If there are holes within the 5925 * the zone and SPARSEMEM is in use. If there are holes within the
5926 * zone, each populated memory region may cost us one or two extra 5926 * zone, each populated memory region may cost us one or two extra
5927 * memmap pages due to alignment because memmap pages for each 5927 * memmap pages due to alignment because memmap pages for each
5928 * populated regions may not naturally algined on page boundary. 5928 * populated regions may not be naturally aligned on page boundary.
5929 * So the (present_pages >> 4) heuristic is a tradeoff for that. 5929 * So the (present_pages >> 4) heuristic is a tradeoff for that.
5930 */ 5930 */
5931 if (spanned_pages > present_pages + (present_pages >> 4) && 5931 if (spanned_pages > present_pages + (present_pages >> 4) &&