Re: [PATCH V2] mm: madvise: fix uneven accounting of psi

From: Charan Teja Kalla
Date: Wed Jun 28 2023 - 06:51:05 EST


Thanks Johannes!!

On 6/27/2023 8:16 PM, Johannes Weiner wrote:
> Unless I'm missing something, this also includes inactive pages, which
> is undesirable. Shouldn't this be:
>
> if (folio_test_active(folio))

My bad. Let me fix it.

> folio_set_workingset(folio);