Re: [PATCH 1/6] mm/page_io: convert write completion handlers to folios

From: Johannes Weiner

Date: Fri Aug 07 2026 - 13:12:55 EST


On Thu, Aug 06, 2026 at 06:55:33PM -0400, Tal Zussman wrote:
> Convert swap_write_end() and swap_fs_write_complete() to operate on
> folios directly instead of going through the folio-compat page APIs.
> This removes calls to end_page_writeback() and set_page_dirty(), and the
> last caller of ClearPageReclaim(), saving two calls to compound_head()
> per folio on the write error path.
>
> Signed-off-by: Tal Zussman <tz2294@xxxxxxxxxxxx>

Also the last end_page_writeback() user in mm/ :) Nice.

Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>