ceph: no need to invalidate the fscache twice
authorXiubo Li <xiubli@redhat.com>
Thu, 7 Apr 2022 05:12:42 +0000 (13:12 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 25 May 2022 18:45:13 +0000 (20:45 +0200)
Fixes: 400e1286c0ec3 ("ceph: conversion to new fscache API")
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/inode.c

index f9b68b2..e606548 100644 (file)
@@ -1886,7 +1886,6 @@ 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, false);
        if (invalidate_inode_pages2(inode->i_mapping) < 0) {
                pr_err("invalidate_inode_pages2 %llx.%llx failed\n",
                       ceph_vinop(inode));