Re: [PATCH] mm: vmscan: the dirty folio unmap redundantly

From: Matthew Wilcox
Date: Wed Oct 18 2023 - 10:12:41 EST


On Wed, Oct 18, 2023 at 09:30:03AM +0800, Zhiguo Jiang wrote:
> If the dirty folio is not reclaimed in the shrink process, it do
> not need to unmap, which can save shrinking time during traversaling
> the dirty folio.

Don't we have to unmap it first in order to make sure that all the
dirty bits from the PTEs have been transferred to the folio dirty bit?