On 11/25/24 22:01, Matthew Wilcox (Oracle) wrote: > In preparation for allocating frozen pages, stop initialising the page > refcount in prep_new_page(). > > Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx> Can't hurt to only set refcount on a compound page after it's fully initialized. But we do it without any memory barriers so it's probably the same, and hopefully no speculative sanner is tricked by that before nor after. Anyway, Reviewed-by: Vlastimil Babka <vbabka@xxxxxxx>