From: Xiubo Li Date: Thu, 7 Apr 2022 05:12:42 +0000 (+0800) Subject: ceph: no need to invalidate the fscache twice X-Git-Tag: v6.1-rc5~1179^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=68e5ec2ec94576bee4d5280d512ed47e6f876baf;p=platform%2Fkernel%2Flinux-starfive.git ceph: no need to invalidate the fscache twice Fixes: 400e1286c0ec3 ("ceph: conversion to new fscache API") Signed-off-by: Xiubo Li Reviewed-by: Jeff Layton Signed-off-by: Ilya Dryomov --- diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c index f9b68b2..e606548 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c @@ -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));