On Sun, Sep 27, 2026 at 02:44:18PM -0700, Suren Baghdasaryan wrote:
> On Thu, Sep 17, 2026 at 9:27 AM Lorenzo Stoakes (ARM) <[email protected]> wrote:
> > diff --git a/include/linux/mm.h b/include/linux/mm.h
> > index a1f2d375cf7d..2a92193ac6a5 100644
> > --- a/include/linux/mm.h
> > +++ b/include/linux/mm.h
> > +static inline void
> > +discontig_kernel_map_page_range(struct discontig_kernel_page_state *state,
> > + struct page **page_arr, unsigned long
> > nr_pages)
> > +{
> > + state->action = DISCONTIG_KERNEL_PAGE_MAP_PAGE_RANGE;
> > + state->__page_arr = page_arr;
> > + state->__nr_pages = nr_pages;
>
> Shouldn't we cap state->__nr_pages at state->nr_pages_remain like you
> do in discontig_kernel_map_page()?
Ack yeah good point, will do!
--
Cheers, Lorenzo