Re: [PATCH v3 1/2] mm: pass page count and reserved to __init_single_page

From: David Hildenbrand
Date: Tue Sep 26 2023 - 03:45:26 EST


On 26.09.23 04:33, Yajun Deng wrote:
When we init a single page, we need to mark this page reserved if it
does.

I failed to parse the last part of this sentence.

And some pages may not need to set page count, such as compound
pages.

Usually, the refcount of all tail pages *must* be zero. Otherwise, get_page_unless_zero() would work on tail pages.

Can you elaborate why it should be okay here?


--
Cheers,

David / dhildenb