From: Patrick Donnelly Date: Wed, 24 Aug 2022 17:12:21 +0000 (-0400) Subject: mds: note damaged dentry with first gt last X-Git-Tag: v16.2.13~55^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a9442e3bc4585b379614127e249c072592f05c56;p=ceph.git mds: note damaged dentry with first gt last Only when loaded in cache. Signed-off-by: Patrick Donnelly (cherry picked from commit 956eff7e02498511b597aadb85c686b78c44ea8a) --- diff --git a/src/mds/CDir.cc b/src/mds/CDir.cc index bf7559df5623..b4ac908d55c6 100644 --- a/src/mds/CDir.cc +++ b/src/mds/CDir.cc @@ -1771,6 +1771,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::const_iterator p = snaps->lower_bound(first);