[PATCH 0/4] mm, ceph: remove wait_on_page_writeback()

From: Tal Zussman

Date: Sun Aug 02 2026 - 12:53:47 EST


wait_on_page_writeback() is a compatibility wrapper for
folio_wait_writeback() and has a single remaining caller in ceph's
writeback path. Convert that caller to use folios and remove the
wrapper.

Along the way, replace ceph's page_snap_context(), which uses
page->private, with a folio-based ceph_folio_snap_context(), dropping
three &folio->page conversions at its call sites.

No functional change intended.

Note: This is currently based on mm-new. It may conflict slightly with
Zi Yan's series "Remove PG_private by using page/folio->private checks
instead" [1], which should allow simplifying ceph_folio_snap_context()
further.

[1] https://lore.kernel.org/linux-mm/20260731-remove-pg_private-v1-0-142c97ba3562@xxxxxxxxxx/T/

Signed-off-by: Tal Zussman <tz2294@xxxxxxxxxxxx>
---
Tal Zussman (4):
ceph: add ceph_folio_snap_context()
ceph: convert ceph_wait_until_current_writes_complete() to folios
mm: remove wait_on_page_writeback()
ceph: remove page_snap_context()

fs/ceph/addr.c | 28 ++++++++++++++--------------
include/linux/pagemap.h | 1 -
mm/folio-compat.c | 6 ------
3 files changed, 14 insertions(+), 21 deletions(-)
---
base-commit: 1dbd7c34bb92dd9c0b0363b75f6ec444299af108
change-id: 20260802-remove-wait-on-page-writeback-8e0cb766d4c7

Best regards,
--
Tal Zussman <tz2294@xxxxxxxxxxxx>