From: Baolin Wang <baolin.wang@linux.alibaba.com>
To: Fnu Samridh <samridh@modal.com>,
"David Hildenbrand (Arm)" <david@kernel.org>
Cc: Hugh Dickins <hughd@google.com>,
Andrew Morton <akpm@linux-foundation.org>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] mm/shmem: avoid zeroing new folios twice with init_on_alloc=1
Date: Mon, 23 Nov 2026 17:11:15 +0800 [thread overview]
Message-ID: <48e3657c-d29e-44cd-a235-c93051520674@linux.alibaba.com> (raw)
In-Reply-To: <CAKyepcSuZ49Nv2D3UGC++-niYtfMcPEE7sjAf2SSRx4KAy1oGA@mail.gmail.com>
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@linux.alibaba.com>
prev parent reply other threads:[~2026-11-23 9:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-18 20:28 Samridh via B4 Relay
2026-11-19 17:06 ` David Hildenbrand (Arm)
2026-11-20 21:40 ` Fnu Samridh
2026-11-23 9:11 ` Baolin Wang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48e3657c-d29e-44cd-a235-c93051520674@linux.alibaba.com \
--to=baolin.wang@linux.alibaba.com \
--cc=akpm@linux-foundation.org \
--cc=david@kernel.org \
--cc=hughd@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=samridh@modal.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®