mbox series

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

Message ID 20201120153006.304296-1-jlayton@kernel.org (mailing list archive)
Headers show
Series ceph: conversion to new netfs/fscache APIs | expand

Message

Jeff Layton Nov. 20, 2020, 3:30 p.m. UTC
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(-)