Message ID | 1357290140-17044-18-git-send-email-zheng.z.yan@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 3410b0f..5adf4b7 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -6120,9 +6120,11 @@ void MDCache::dentry_remove_replica(CDentry *dn, int from) // fix lock if (dn->lock.remove_replica(from)) mds->locker->eval_gather(&dn->lock); -} - + CDentry::linkage_t *dnl = dn->get_projected_linkage(); + if (dnl->is_primary()) + maybe_eval_stray(dnl->get_inode()); +} void MDCache::trim_client_leases() {