]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: clear scatter dirty when deleting directory
authorYan, Zheng <zyan@redhat.com>
Fri, 14 Apr 2017 07:35:10 +0000 (15:35 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 11 May 2017 06:13:24 +0000 (14:13 +0800)
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/MDCache.cc

index 90835a8472f865ea16da754035c2966fae26a5b4..50476199ad6cc9ca70b1137b9aa340fb18619f9d 100644 (file)
@@ -12382,5 +12382,10 @@ void MDCache::clear_dirty_bits_for_stray(CInode* diri) {
     if (p->is_auth() && !(p->is_frozen() || p->is_freezing()))
       p->try_remove_dentries_for_stray();
   }
+  if (!diri->snaprealm) {
+    if (diri->is_auth())
+      diri->clear_dirty_rstat();
+    diri->clear_scatter_dirty();
+  }
 }