]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: note damaged dentry with first gt last
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 24 Aug 2022 17:12:21 +0000 (13:12 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 29 Sep 2022 01:37:39 +0000 (21:37 -0400)
Only when loaded in cache.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/CDir.cc

index 0d59c4cf3425fba2b01e73db6d4ba3a82c93c478..cdd625d2290673083d0bf04eb068d26e4ae85405 100644 (file)
@@ -1812,6 +1812,11 @@ CDentry *CDir::_load_dentry(
            << " [" << first << "," << last << "]"
            << dendl;
 
+  if (first > last) {
+    go_bad_dentry(last, dname);
+    /* try to continue */
+  }
+
   bool stale = false;
   if (snaps && last != CEPH_NOSNAP) {
     set<snapid_t>::const_iterator p = snaps->lower_bound(first);