diff options
author | Jeff Layton <jlayton@kernel.org> | 2021-01-22 00:05:37 +0100 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2021-04-27 23:52:22 +0200 |
commit | 10a7052c7868bc7bc72d947f5aac6f768928db87 (patch) | |
tree | 613294d27aa982c001644a0a88c592cd1603a33f /fs/ceph/inode.c | |
parent | ceph: rework PageFsCache handling (diff) | |
download | linux-10a7052c7868bc7bc72d947f5aac6f768928db87.tar.xz linux-10a7052c7868bc7bc72d947f5aac6f768928db87.zip |
ceph: fix fscache invalidation
Ensure that we invalidate the fscache whenever we invalidate the
pagecache.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/inode.c')
-rw-r--r-- | fs/ceph/inode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c index 156f849f5385..4418d4be2907 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c @@ -1863,6 +1863,7 @@ static void ceph_do_invalidate_pages(struct inode *inode) orig_gen = ci->i_rdcache_gen; spin_unlock(&ci->i_ceph_lock); + ceph_fscache_invalidate(inode); if (invalidate_inode_pages2(inode->i_mapping) < 0) { pr_err("invalidate_pages %p fails\n", inode); } |