]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: conversion to new fscache API
authorJeff Layton <jlayton@kernel.org>
Tue, 12 May 2020 18:24:02 +0000 (14:24 -0400)
committerJeff Layton <jlayton@kernel.org>
Mon, 29 Nov 2021 11:06:00 +0000 (06:06 -0500)
commitd60ee6e1dd2af622cc4b2200579686b78653e02b
tree9b3b9e7c45364208a63feb753ba8f03a89faaae8
parente816575209bf679fc1fe51d0028997171c68e7fd
ceph: conversion to new fscache API

Now that the fscache API has been reworked and simplified, change ceph
over to use it.

With the old API, we would only instantiate a cookie when the file was
open for reads. Change it to instantiate the cookie when the inode is
instantiated and call use/unuse when the file is opened/closed.

Also, ensure we resize the cached data on truncates, and invalidate the
cache in response to the appropriate events. This will allow us to
plumb in write support later.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
fs/ceph/Kconfig
fs/ceph/addr.c
fs/ceph/cache.c
fs/ceph/cache.h
fs/ceph/caps.c
fs/ceph/file.c
fs/ceph/inode.c
fs/ceph/super.c
fs/ceph/super.h