Re: [PATCH] mm/damon/paddr: skip hugetlb folios as a whole in pageout

From: Aveline Noir

Date: Tue Nov 17 2026 - 10:57:36 EST


Hi SJ,

On Tue, 17 Nov 2026 06:33:51 -0800 SJ Park wrote:

> > + if (folio && !folio_test_lru(folio) && folio_test_hugetlb(folio))
>
> Why do we need both !folio_test_lru() and folio_test_hugetlb() here? Could
> hugetlb folio in lru list exist? Could folios not in lru list be reclaimed?

Yeah, you're right. Neither is possible, so the hugetlb check is
redundant.

> Would only !folio_test_lru() suffice? If so, the patch subject and
> description may also better to be updated.

That'll be better. Thanks for your help :) I'll fix it in v2.

Thanks,
Aveline Noir