mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:46:16 +00:00
s390/mm: get estimated free pages by memblock api
Instead of getting estimated free pages from memblock directly, we have introduced an API, memblock_estimated_nr_free_pages(), which is more friendly for users. Just replace it with new API, no functional change. Signed-off-by: Wei Yang <richard.weiyang@gmail.com> CC: Mike Rapoport <rppt@kernel.org> CC: David Hildenbrand <david@redhat.com> Acked-by: David Hildenbrand <david@redhat.com> Link: https://lore.kernel.org/r/20240808001415.6298-3-richard.weiyang@gmail.com Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
This commit is contained in:
parent
0910bf0ef8
commit
cb088e38aa
@ -62,7 +62,7 @@ EXPORT_SYMBOL(zero_page_mask);
|
||||
|
||||
static void __init setup_zero_pages(void)
|
||||
{
|
||||
unsigned long total_pages = PHYS_PFN(memblock_phys_mem_size() - memblock_reserved_size());
|
||||
unsigned long total_pages = memblock_estimated_nr_free_pages();
|
||||
unsigned int order;
|
||||
struct page *page;
|
||||
int i;
|
||||
|
Loading…
Reference in New Issue
Block a user