Re: [PATCH v2] mm/shmem: avoid zeroing new folios twice with init_on_alloc=1
From: Fnu Samridh
Date: Fri Nov 20 2026 - 16:41:02 EST
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!