]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge pull request #19105 from batrick/i22228
authorYuri Weinstein <yuri.weinstein@gmail.com>
Thu, 25 Jan 2018 20:03:21 +0000 (12:03 -0800)
committerGitHub <noreply@github.com>
Thu, 25 Jan 2018 20:03:21 +0000 (12:03 -0800)
luminous: client: anchor Inode while trimming caps

Reviewed-by: Yan, Zheng <zyan@redhat.com>
Reviewed-by: Yuri Weinstein <yweins@redhat.com>
1  2 
src/client/Client.cc

index 43a2be4fe82e1e3b7136517161f585ba960d0b31,55c00695db60d575679017d57453f4f7842f4c41..1b08b3c3a2febb62d8f1584935befb0308e843d9
@@@ -4114,9 -4115,10 +4117,11 @@@ void Client::trim_caps(MetaSession *s, 
        }
      }
    }
+   ldout(cct, 20) << " clearing anchored inodes" << dendl;
+   anchor.clear();
  
 -  if (s->caps.size() > max)
 +  caps_size = s->caps.size();
 +  if (caps_size > max)
      _invalidate_kernel_dcache();
  }