diff options
author | Jeff Layton <jlayton@kernel.org> | 2021-01-21 22:27:14 +0100 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2021-04-27 23:52:21 +0200 |
commit | 7c46b31809337df12a538239e6caa41df7c7deec (patch) | |
tree | 6e3256c9eda9ee7b880137bd1e0e427575990e46 /fs/ceph/super.h | |
parent | ceph: rip out old fscache readpage handling (diff) | |
download | linux-7c46b31809337df12a538239e6caa41df7c7deec.tar.xz linux-7c46b31809337df12a538239e6caa41df7c7deec.zip |
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.h | 1 |
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 |