]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: rework PageFsCache handling
authorJeff Layton <jlayton@kernel.org>
Thu, 21 Jan 2021 21:27:14 +0000 (16:27 -0500)
committerJeff Layton <jlayton@kernel.org>
Thu, 28 Jan 2021 12:36:14 +0000 (07:36 -0500)
commit5a1eb07add3bb040beab51b01dd77abbc0b8385b
tree2da95b6a7c89daab5969ae57d23d86ffa543b0ca
parent324292d5734d29c74fdb5931f587bc11fea7941e
ceph: rework PageFsCache handling

With the new fscache API, the PageFsCache bit now indicates that the
page is being written to the cache and shouldn't be modified or released
until it's finished.

Change releasepage and invalidatepage to wait on that bit before
returning.

Also define FSCACHE_USE_NEW_IO_API so that we opt into the new fscache
API.

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