]> git-server-git.apps.pok.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>
Thu, 16 Oct 2025 06:09:26 +0000 (11:39 +0530)
commitf7bbbd3927677f2268d78786eec73c4b6d18dd50
treeb1c52809005f5afaece14b71bc631a607556f937
parent7666ced14a5c6811d622475ffded4904e8ba5e51
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>
(cherry picked from commit 1518690210f3a4473978c7a9274e902fccaad862)

Conflicts:
src/mds/CDir.cc
- Certain code region where trimmed inode path was generated was
  modified to generated inode path but that code region is absent on
  this branch.
src/mds/CDentry.cc
src/mds/CDentry.h
src/mds/CDir.cc
src/mds/CDir.h
src/mds/CInode.cc
src/mds/CInode.h