Skip to content

ceph: conversion to new netfs/fscache APIs

Jeff Layton ceph-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ceph: conversion to new fscache APIfs/ceph/addr.c fs/ceph/cache.c fs/ceph/cache.h +5 more+177 -3310 replies
2/5ceph: convert readpage to fscache read helperfs/ceph/Kconfig fs/ceph/addr.c+158 -100 replies
3/5ceph: plug write_begin into read helperfs/ceph/addr.c+61 -1260 replies
4/5ceph: convert ceph_readpages to ceph_readaheadfs/ceph/addr.c+34 -1960 replies
5/5ceph: add fscache writeback supportfs/ceph/Kconfig fs/ceph/addr.c+58 -80 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/5] ceph: conversion to new netfs/fscache APIs

This patchset converts ceph to the new netfs/fscache APIs, and depends on the fscache overhaul that David Howells recently posted. It also adds support for writing to the cache. Due to the fact that we're leveraging the new netfs_* helpers, this is substantial reduction in code as well.

I've tested this pretty extensively using xfstests and kernel builds, both with and without the cache enabled. It all seems to do the right thing now.

Jeff Layton (5):
ceph: conversion to new fscache API
ceph: convert readpage to fscache read helper
ceph: plug write_begin into read helper
ceph: convert ceph_readpages to ceph_readahead
ceph: add fscache writeback support

 fs/ceph/Kconfig |   3 +-
 fs/ceph/addr.c  | 627 ++++++++++++++++++++++--------------------------
 fs/ceph/cache.c | 295 +++++++----------------
 fs/ceph/cache.h | 106 +++-----
 fs/ceph/caps.c  |  12 +-
 fs/ceph/file.c  |  14 +-
 fs/ceph/inode.c |  24 +-
 fs/ceph/super.c |   1 +
 fs/ceph/super.h |   1 -
 9 files changed, 450 insertions(+), 633 deletions(-)
Signature · 1 line
2.28.0