ceph: rework PageFsCache handling
authorJeff Layton <jlayton@kernel.org>
Thu, 21 Jan 2021 21:27:14 +0000 (16:27 -0500)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 27 Apr 2021 21:52:21 +0000 (23:52 +0200)
commit7c46b31809337df12a538239e6caa41df7c7deec
tree6e3256c9eda9ee7b880137bd1e0e427575990e46
parente7df4524cd9a6a006f9e12f3d908e5af69dfa145
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>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/addr.c
fs/ceph/super.h