]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds: for logging generate only 10 final components of dentry path
authorRishabh Dave <ridave@redhat.com>
Thu, 21 Aug 2025 11:51:48 +0000 (17:21 +0530)
committerRishabh Dave <ridave@redhat.com>
Fri, 19 Sep 2025 03:17:21 +0000 (08:47 +0530)
commitede5f93f2735b039061ea43821e0f83451fcd4c3
tree0fa12e1029d9967d9ba645f2784df30781c54940
parent145c98148b34aa2a5dd11a50d2370e937feda27e
mds: for logging generate only 10 final components of dentry path

Generating full absolute path for dentries for printing in MDS logs
slows the down the FS to a great extent especially when the path is very
long (imagine a path with 2000 components). Printing such long paths in
MDS logs is not only pointless but also greatly reduces the readability
of MDS logs.

Therefore, generate only 10 final components of the dentry paths for logging.

Fixes: https://tracker.ceph.com/issues/72779
Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/include/filepath.cc
src/include/filepath.h
src/mds/CDentry.cc
src/mds/CDentry.h
src/mds/CInode.cc
src/mds/CInode.h