Re: [PATCH v5 10/12] mm: constify various inline test functions for improved const-correctness
From: Max Kellermann
Date: Mon Sep 01 2025 - 11:31:33 EST
On Mon, Sep 1, 2025 at 4:00 PM David Hildenbrand <david@xxxxxxxxxx> wrote:
> Also some getters hiding (and functions that actually implement logic --
> folio_migrate_refs())
Indeed; I mentioned that one in the message body, and I thought this
was good enough, but I dropped the word "test" from the subject line
to avoid confusion.
> > -static inline int folio_lru_gen(struct folio *folio)
> > +static inline int folio_lru_gen(const struct folio *folio)
>
> *const ?
Right. Added for next revision.