mds: note damaged dentry with first gt last

Only when loaded in cache.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
Patrick Donnelly 2022-08-24 13:12:21 -04:00
parent 40f483ed45
commit 956eff7e02
No known key found for this signature in database
GPG Key ID: BE69BB7D36E459B4

View 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);