]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: unlink any stale remote snap dentry when evaluating stray inode
authorYan, Zheng <zyan@redhat.com>
Mon, 18 May 2015 06:48:10 +0000 (14:48 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 19 May 2015 07:47:17 +0000 (15:47 +0800)
commit55766865bd51a3983514e163d67a5a81ce1120cf
tree8f6420fb2923db911b67d77ed4fa113da96aa620
parentc1f4b7a25793fc8f690ce3adc9e1ad597fe21605
mds: unlink any stale remote snap dentry when evaluating stray inode

Remote snap dentry may hold reference to the stray directory inode,
the reference prevent the stray inode from being purged. After making
sure the stray directory inode is not referenced by any snapshot, we
know that all remote snap dentries should be stale, so we can unlink
them safely.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mds/StrayManager.cc