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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux