> Add PG_zeroed (aliased to PG_private_2) to track pages whose contents
> are known to be zero.  Propagate it through buddy merges and splits.
> Upon folio allocation, PG_zeroed is cleared and its value is transferred
> to BIT(2) in lru.next.
> 
> This bit, in turn, is tested by the new folio_init_user(). If clear, the
> helper zero-initializes the folio. If set, it skips clearing the
> contents.
> 
> Clear the aliased flag on free so filesystem state cannot be mistaken
> for zeroed contents.
> 
> Signed-off-by: Michael S. Tsirkin <[email protected]>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review ยท 
https://sashiko.dev/#/patchset/[email protected]?part=1


Reply via email to