]> www.infradead.org Git - users/jedix/linux-maple.git/commit
memblock: align freed memory map on pageblock boundaries with SPARSEMEM
authorMike Rapoport <rppt@linux.ibm.com>
Mon, 17 May 2021 18:31:59 +0000 (21:31 +0300)
committerMike Rapoport <rppt@linux.ibm.com>
Mon, 24 May 2021 16:08:04 +0000 (19:08 +0300)
commit4ce27baf95df621f2a075f8de535c58367555513
treed8f12566c50a3310d3ed71a0f372bcfb76ceff5f
parent03be3200ba9f941846904339996b57132acd1bcc
memblock: align freed memory map on pageblock boundaries with SPARSEMEM

When CONFIG_SPARSEMEM=y the ranges of the memory map that are freed are not
aligned to the pageblock boundaries which breaks assumptions about
homogeneity of the memory map throughout core mm code.

Make sure that the freed memory map is always aligned on pageblock
boundaries regardless of the memory model selection.

Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
mm/memblock.c