Re: [PATCH v3] mm/memory: drop PROCESS_PAGES_NON_PREEMPT_BATCH
From: Garg, Shivank
Date: Wed Nov 11 2026 - 14:12:50 EST
On Wed, 2026-11-11 at 14:21 +0100, Peter Zijlstra wrote:
> On Wed, Nov 11, 2026 at 01:12:06PM +0000, Lorenzo Stoakes (ARM) wrote:
> > On Wed, Nov 11, 2026 at 01:40:06PM +0100, Peter Zijlstra wrote:
> > > FWIW one could do:
> > >
> > > for (int i = 0; i < nr_pages; i++) {
> > >
> > > and forgo the earlier variable declaration.
> >
> > I guess we all got used to the existing patterns and I for one only
> > recently found out (doh) that this was legal in kernel style (because I saw
> > it used in KVM)...
>
> Right; which is why I keep reminding people this is now 'legal' :-)
Thank you, Peter.
Good to know this and I'll keep in mind for next time.
btw the patch is already in mm/core.git. I don't have a strong
opinion on this, but I'm happy to send a V4 if you'd prefer.
Thanks,
Shivank