]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: re-integrate stray when link count >= 1
authorYan, Zheng <zheng.z.yan@intel.com>
Wed, 4 Sep 2013 07:16:35 +0000 (15:16 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Thu, 19 Sep 2013 06:01:02 +0000 (14:01 +0800)
no reason not to rename inode out of the stray directory if the
inode's link count > 1

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
src/mds/MDCache.cc

index 786b0ac0742e49ab262821cf23a499e7109905a1..9d59b70249a313a153522ddb05ada88fe17094ac 100644 (file)
@@ -9214,7 +9214,7 @@ void MDCache::eval_stray(CDentry *dn)
     }
     purge_stray(dn);
   }
-  else if (in->inode.nlink == 1) {
+  else if (in->inode.nlink >= 1) {
     // trivial reintegrate?
     if (!in->remote_parents.empty()) {
       CDentry *rlink = *in->remote_parents.begin();