]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
multi-mds/unlink: Unlink referent inode on dentry replicas
authorKotresh HR <khiremat@redhat.com>
Tue, 25 Feb 2025 11:23:39 +0000 (16:53 +0530)
committerKotresh HR <khiremat@redhat.com>
Tue, 4 Mar 2025 06:20:47 +0000 (11:50 +0530)
commit42d88f4072f6df16bdff3a36ddcc8d5bf5413824
treeaf7f35e81e0a692f9852682168595ea08be3f858
parentf94c8327facbb313a720f2fcfb013a4f9b00a8e5
multi-mds/unlink: Unlink referent inode on dentry replicas

If the dentry being deleted is a secondary hardlink with
referent inode and is replicated, the dentry replicas mdses
gets notified to unlink the inode. The referent inode
needs to be unlinked in this case. This patch takes care
of handling the same in 'handle_dentry_unlink'.

Also, the straydn is created with remote referent to
remove the referent inode. The straydn needs to be
sent to straydn replicas and dentry replicas of hardlink
which gets handled in 'handle_dentry_unlink'. This patch
contains this change as well.

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