From the path depth we can get more useful info, such as whether
the path_traverse() acquired any locks, etc.
Fixes: https://tracker.ceph.com/issues/67280
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
5d8aa5245cb7e5d819651898533130e463b373fe)
if (mds->logger) mds->logger->inc(l_mds_traverse);
- dout(7) << "traverse: opening base ino " << path.get_ino() << " snap " << snapid << dendl;
+ dout(7) << "traverse: opening base ino " << path.get_ino() << " snap " << snapid
+ << " path depth " << path.depth() << dendl;
CInode *cur = get_inode(path.get_ino());
if (!cur) {
if (MDS_INO_IS_MDSDIR(path.get_ino())) {