Re: [External] Re: [QUESTION] mm: Redundant const parameter?

From: Matthew Wilcox
Date: Fri May 31 2024 - 09:21:12 EST


On Fri, May 31, 2024 at 08:30:08PM +0800, Chengming Zhou wrote:
> On 2024/5/31 19:31, Dev Jain wrote:
> > I guess it would be better if I send this as a patch and wait for comments.
>
> Ah, you're right. I think it should be:
>
> return folio_test_workingset(slab_folio(slab));
>
> Right? Don't notice there isn't any build warning about this "const" discard.

But there used to be! I fixed that in ce3467af6bde dated Feb 27 2024,
which took a fair amount of prep work to make happen.