]> git.apps.os.sepia.ceph.com Git - ceph.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, 26 Sep 2025 17:50:44 +0000 (23:20 +0530)
commit1430cd67d8f7bd7d98b241a7511fa3ceb7e5ba2e
tree75b48bb7e77aafe4b14e1fc55ad3e5b2aa3fed67
parent1518690210f3a4473978c7a9274e902fccaad862
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