Re: [PATCH 2/4] ceph: convert ceph_wait_until_current_writes_complete() to folios

Matthew Wilcox <[email protected]> Mon, 3 Aug 2026 00:22:28 +0100
Newsgroups org.kernel.vger.ceph-devel,org.kernel.vger.linux-fsdevel,org.kernel.vger.linux-kernel,org.kvack.linux-mm
Message-ID <[email protected]>
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 <[email protected]>

Beautiful.

Reviewed-by: Matthew Wilcox (Oracle) <[email protected]>