Skip to content

ceph: convert the inline data paths to folios

Tal Zussman ceph-devel lkml 2 versions – New

Get series with b4
b4 am [email protected] change-id 20260825-ceph-inline-folio-17bcdb200850

Versions newest first

  1. v2 Latest5 patches 0 repliesNew
  2. v16 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Rebase onto the latest ceph-client testing branch
- Patch 4: Convert the CONFIG_CEPH_FS_INLINE_DATA=n stub of ceph_fill_inline_data() as well
- Drop the put_bvecs() patch, as it was unrelated and could underflow
the refcount of slab pages, per Sashiko
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ceph: use a folio in ceph_get_caps()fs/ceph/caps.c+5 -50 replies
2/5ceph: use a folio in the inline read branch of ceph_filemap_fault()fs/ceph/addr.c+12 -110 replies
3/5ceph: use a folio in the READ_INLINE path of ceph_read_iter()fs/ceph/file.c+10 -90 replies
4/5ceph: convert ceph_fill_inline_data() to take a foliofs/ceph/addr.c fs/ceph/inode.c fs/ceph/super.h+26 -300 replies
5/5ceph: convert r_locked_page to r_locked_foliofs/ceph/addr.c fs/ceph/file.c fs/ceph/inode.c +2 more+13 -150 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/5] ceph: convert the inline data paths to folios

This removes the last ceph callers of find_or_create_page() and find_get_page(), and one of the five remaining calls to __page_cache_alloc().

The remaining inline data struct page use is the single-entry page array in ceph_uninline_data(), due to the OSD client using page-based data types.

Inline data support is deprecated and, as of the current testing branch, gated behind CONFIG_CEPH_FS_INLINE_DATA ahead of its eventual removal [1]. The conversions are still worth doing in the meantime, as they remove the last ceph users of some deprecated mm APIs that we'd like to remove next cycle.

Compile-tested only, with CONFIG_CEPH_FS_INLINE_DATA both enabled and disabled.

[1] https://lore.kernel.org/ceph-devel/[email protected]/

---
Changes in v2:
- Rebase onto the latest ceph-client testing branch
- Patch 4: Convert the CONFIG_CEPH_FS_INLINE_DATA=n stub of ceph_fill_inline_data() as well
- Drop the put_bvecs() patch, as it was unrelated and could underflow
the refcount of slab pages, per Sashiko
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Tal Zussman (5):
ceph: use a folio in ceph_get_caps()
ceph: use a folio in the inline read branch of ceph_filemap_fault()
ceph: use a folio in the READ_INLINE path of ceph_read_iter()
ceph: convert ceph_fill_inline_data() to take a folio
ceph: convert r_locked_page to r_locked_folio

 fs/ceph/addr.c       | 70 +++++++++++++++++++++++++---------------------------
 fs/ceph/caps.c       | 10 ++++----
 fs/ceph/file.c       | 18 +++++++-------
 fs/ceph/inode.c      | 14 +++++------
 fs/ceph/mds_client.h |  2 +-
 fs/ceph/super.h      | 12 ++++-----
 6 files changed, 61 insertions(+), 65 deletions(-)

---
base-commit: 6b039a71d37a39bb90a64c4e271f90ee0588ac4a
change-id: 20260825-ceph-inline-folio-17bcdb200850

Best regards,

Signature · 1 line
Tal Zussman <[email protected]>