summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYan, Zheng <zheng.z.yan@intel.com>2013-09-04 15:16:35 +0800
committerYan, Zheng <zheng.z.yan@intel.com>2013-09-19 14:01:02 +0800
commite303b964f7c0129c2b0b83e2e719613271e822d8 (patch)
tree97d40a07f28ecad3fd49ea39d2d7697c9d250b8a
parent862e0f12a6458e7e1dbb24ea50548a8968635485 (diff)
downloadceph-e303b964f7c0129c2b0b83e2e719613271e822d8.tar.gz
mds: re-integrate stray when link count >= 1
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>
-rw-r--r--src/mds/MDCache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc
index 786b0ac0742..9d59b70249a 100644
--- a/src/mds/MDCache.cc
+++ b/src/mds/MDCache.cc
@@ -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();