]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: for logging generate only 10 final components of inode path
authorRishabh Dave <ridave@redhat.com>
Sun, 17 Aug 2025 18:13:40 +0000 (23:43 +0530)
committerRishabh Dave <ridave@redhat.com>
Fri, 26 Sep 2025 17:49:50 +0000 (23:19 +0530)
commit1518690210f3a4473978c7a9274e902fccaad862
tree584163da040da014029ab25af16ff7a57e1e1567
parent6021dda7ed137445885979cd4d4b28c770abce13
mds: for logging generate only 10 final components of inode path

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

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

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