Re: [PATCH] mm: Do not start/end writeback for pages stored in zswap

From: Johannes Weiner
Date: Mon Jun 10 2024 - 16:15:41 EST


On Mon, Jun 10, 2024 at 03:30:37PM +0100, Usama Arif wrote:
> start/end writeback combination incorrectly increments NR_WRITTEN
> counter, eventhough the pages aren't written to disk. Pages successfully
> stored in zswap should just unlock folio and return from writepage.
>
> Signed-off-by: Usama Arif <usamaarif642@xxxxxxxxx>

I also don't see anything in those start and end calls that wouldn't
be pointless churn for these pages.

Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>