Re: [PATCH v3] mm/memory: drop PROCESS_PAGES_NON_PREEMPT_BATCH
From: Peter Zijlstra
Date: Wed Nov 11 2026 - 08:24:04 EST
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' :-)