Re: [PATCH 2/2] mm/mm_init.c: count nr_initialised only for last zone

Wei Yang
2024-05-24T00:59:23Z

On Thu, May 23, 2024 at 05:53:09PM +0300, Mike Rapoport wrote:
>On Wed, May 22, 2024 at 07:29:59AM +0000, Wei Yang wrote:
>> Since we always populate low zones, it is not necessary to count
>> nr_initialised for them. Let's move the last zone check ahead to skip
>> the nr_initialised reset.
>
>We also don't need to count initialized pfns after first_deferred_pfn is
>detected, so the reset of nr_initialised can be moved even lower.
>

Agree, will update in v2.

--
Wei Yang
Help you, Help me