]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "mds: allow purging "dirty parent" stray inode"
authorSage Weil <sage@inktank.com>
Tue, 4 Jun 2013 18:07:58 +0000 (11:07 -0700)
committerSage Weil <sage@inktank.com>
Tue, 4 Jun 2013 18:07:58 +0000 (11:07 -0700)
This reverts commit b8f1cb978944a616b69150fdbb3a6b978d75b1dc.

src/mds/MDCache.cc

index d32109a2f32430077ff657482f4ef65ca090854d..a75724e12049d74551aa51c40ef911213bcdaa3b 100644 (file)
@@ -8584,7 +8584,7 @@ void MDCache::eval_stray(CDentry *dn)
       dout(20) << " pending recovery" << dendl;
       return;  // don't mess with file size probing
     }
-    if (in->get_num_ref() > (int)in->is_dirty() + (int)in->is_dirty_parent()) {
+    if (in->get_num_ref() > (int)in->is_dirty()) {
       dout(20) << " too many inode refs" << dendl;
       return;
     }
@@ -8865,9 +8865,6 @@ void MDCache::_purge_stray_logged(CDentry *dn, version_t pdv, LogSegment *ls)
   // drop inode
   if (in->is_dirty())
     in->mark_clean();
-  if (in->is_dirty_parent())
-    in->clear_dirty_parent();
-
   remove_inode(in);
 
   // drop dentry?