]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arm: extend pfn_valid to take into accound freed memory map alignment
authorMike Rapoport <rppt@linux.ibm.com>
Mon, 17 May 2021 18:50:08 +0000 (21:50 +0300)
committerMike Rapoport <rppt@linux.ibm.com>
Mon, 24 May 2021 16:08:28 +0000 (19:08 +0300)
commit990e6d0e1de8308c6d1cc2241b76b994209466dd
tree2b3cedfd9da8aac7eb6a7c5f18a4e38bf6355598
parent4ce27baf95df621f2a075f8de535c58367555513
arm: extend pfn_valid to take into accound freed memory map alignment

When unused memory map is freed the preserved part of the memory map is
extended to match pageblock boundaries because lots of core mm
functionality relies on homogeneity of the memory map within pageblock
boundaries.

Since pfn_valid() is used to check whether there is a valid memory map
entry for a PFN, make it return true also for PFNs that have memory map
entries even if there is no actual memory populated there.

Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Tested-by: Kefeng Wang <wangkefeng.wang@huawei.com>
arch/arm/mm/init.c