summaryrefslogtreecommitdiffstats
path: root/fs/ceph/super.h
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2021-01-21 16:27:14 -0500
committerIlya Dryomov <idryomov@gmail.com>2021-04-27 23:52:21 +0200
commit7c46b31809337df12a538239e6caa41df7c7deec (patch)
tree6e3256c9eda9ee7b880137bd1e0e427575990e46 /fs/ceph/super.h
parente7df4524cd9a6a006f9e12f3d908e5af69dfa145 (diff)
downloadlinux-7c46b31809337df12a538239e6caa41df7c7deec.tar.bz2
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>
Diffstat (limited to 'fs/ceph/super.h')
-rw-r--r--fs/ceph/super.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h
index 6185c59954e3..188565d806b2 100644
--- a/fs/ceph/super.h
+++ b/fs/ceph/super.h
@@ -21,6 +21,7 @@
#include <linux/ceph/libceph.h>
#ifdef CONFIG_CEPH_FSCACHE
+#define FSCACHE_USE_NEW_IO_API
#include <linux/fscache.h>
#endif