diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c index 68ee78109224bd2abde79f267ad7a33d8f3df969..20b28dc0c97c7c7bf5cbe8e94bc958fce69077c7 100644 --- a/fs/ceph/caps.c +++ b/fs/ceph/caps.c @@ -1444,7 +1444,6 @@ void ceph_check_caps(struct ceph_inode_info *ci, int flags, ci->i_rdcache_gen && /* may have cached pages */ (file_wanted == 0 || /* no open files */ (revoking & CEPH_CAP_FILE_CACHE)) && /* or revoking cache */ - !ci->i_truncate_pending && !tried_invalidate) { u32 invalidating_gen = ci->i_rdcache_gen; int ret;