]> git.apps.os.sepia.ceph.com Git - ceph-ci.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, 19 Sep 2025 03:15:39 +0000 (08:45 +0530)
commit145c98148b34aa2a5dd11a50d2370e937feda27e
tree114ccb1ef8706388a2379fc4524efdb60ee99086
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/CInode.cc
src/mds/CInode.h