Re: [PATCH v2] mm/shmem: avoid zeroing new folios twice with init_on_alloc=1
From: Baolin Wang
Date: Mon Nov 23 2026 - 04:11:25 EST
On 11/21/26 5:40 AM, Fnu Samridh wrote:
On 11/19/26 18:06, David Hildenbrand (Arm) wrote:
I do wonder whether that could go into the loop, because I faintly remember that
user_alloc_needs_zeroing() is disabled when CPUs have dcache aliasing.
Yep, it always returns true on CPUs with dcache or icache aliasing, so
the flush only matters when we clear. I'll move it into the if block in v3.
Thanks!
With that addressed, feel free to add:
Reviewed-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>