]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: Store remote inode number in referent inode
authorKotresh HR <khiremat@redhat.com>
Tue, 4 Mar 2025 03:31:57 +0000 (09:01 +0530)
committerKotresh HR <khiremat@redhat.com>
Tue, 4 Mar 2025 06:18:11 +0000 (11:48 +0530)
commit3c034df67942085854f0a5a7b123282c7d9b2e8a
tree1288c8b15eb8c7d353e8213505afb41ef54d3a03
parentb9947bacdfd3cbedcf7a6b93af471c40f3a9c65b
mds: Store remote inode number in referent inode

Hardlink referent inode plumbing continues.
The remote inode information contains the following.
  1. remote_ino - remote inode number
  2. d_type
  3. alternate_name

With the introduction of the referent inode as a full
blown CInode for the hardlink, these information needs
to be part of the inode. Hence add 'remote_ino' field
to the inode. The exisiting 'd_type' and 'alternate_name'
fields could be used.

Fixes: https://tracker.ceph.com/issues/54205
Signed-off-by: Kotresh HR <khiremat@redhat.com>
src/include/cephfs/types.h
src/mds/CDentry.cc
src/mds/CInode.h