Re: [PATCH 2/4] ceph: convert ceph_wait_until_current_writes_complete() to folios
From: Matthew Wilcox
Date: Sun Aug 02 2026 - 19:23:26 EST
On Sun, Aug 02, 2026 at 12:50:03PM -0400, Tal Zussman wrote:
> Iterate the writeback batch as folios rather than using
> &folios[i]->page. Use ceph_folio_snap_context() for the snap context
> check and folio_wait_writeback() instead of wait_on_page_writeback().
>
> This removes one call to compound_head() and the last caller of
> wait_on_page_writeback(). No functional change.
>
> Signed-off-by: Tal Zussman <tz2294@xxxxxxxxxxxx>
Beautiful.
Reviewed-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx>