]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: Handle referent remote similar to remote
authorKotresh HR <khiremat@redhat.com>
Thu, 20 Feb 2025 11:20:31 +0000 (16:50 +0530)
committerKotresh HR <khiremat@redhat.com>
Tue, 4 Mar 2025 06:20:47 +0000 (11:50 +0530)
commit1e5fca1582295c9c89ee4afc1d0406cf17940704
treefa7ff72e153ba3c407ff40bf2ecb3f1edda84ad7
parent1bb435d4a2a74bf49750012f12702bfa69f22800
mds: Handle referent remote similar to remote

In multiple places in the code, the referent remote
needs to be handled similar to remote e.g rstats and
dirfrags check etc.

This patch adds the check in all the places so the
existing functionality doesn't break.

The changes are done in the following functions.

CDir::encode_lock_state
CDir::check_rstats
CDir::adjust_dentry_lru
CDir::steal_dentry
CDir::verify_fragstat
ScrubStack::scrub_dirfrag
Migrator::maybe_split_export
Server::reply_client_request
Server::build_snap_diff
MDCache::journal_cow_dentry
MDCache::path_traverse
MDCache::get_dentry_inode
MDCache::_open_remote_dentry_finish
MDCache::repair_dirfrag_stats_work

Fixes: https://tracker.ceph.com/issues/54205
Signed-off-by: Kotresh HR <khiremat@redhat.com>
src/mds/CDentry.cc
src/mds/CDir.cc
src/mds/MDCache.cc
src/mds/Migrator.cc
src/mds/ScrubStack.cc
src/mds/Server.cc