]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: add _lookup debugging
authorPatrick Donnelly <pdonnell@ibm.com>
Wed, 19 Feb 2025 16:33:49 +0000 (11:33 -0500)
committerPatrick Donnelly <pdonnell@ibm.com>
Thu, 27 Feb 2025 18:41:55 +0000 (13:41 -0500)
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
src/client/Client.cc

index 68bce32682c796d6b0582b98bc06317f0b7b1e72..eeb00f8e4e8fa369d1d3455e50f7c931dbf81832 100644 (file)
@@ -7405,7 +7405,10 @@ relookup:
         << " ttl " << dn->lease_ttl << " seq " << dn->lease_seq << dendl;
 
     if (!dn->inode || dn->inode->caps_issued_mask(mask, true)) {
+      ldout(cct, 25) << __func__ << " no inode or have caps" << dendl;
+
       if (_dentry_valid(dn)) {
+        ldout(cct, 25) << __func__ << " dentry is valid" << dendl;
         // touch this mds's dir cap too, even though we don't _explicitly_ use it here, to
         // make trim_caps() behave.
         dir->try_touch_cap(dn->lease_mds);
@@ -7413,7 +7416,9 @@ relookup:
       }
       // dir shared caps?
       if (dir->caps_issued_mask(CEPH_CAP_FILE_SHARED, true)) {
+        ldout(cct, 25) << __func__ << " dir has Fs" << dendl;
        if (dn->cap_shared_gen == dir->shared_gen) {
+          ldout(cct, 25) << __func__ << " valid shared_gen match" << dendl;
          goto hit_dn;
         }
        if (!dn->inode && (dir->flags & I_COMPLETE)) {