]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: CInode::mark_dirty should then dirty the projected parent inode, if present
authorSage Weil <sage@newdream.net>
Tue, 28 Oct 2008 20:59:32 +0000 (13:59 -0700)
committerSage Weil <sage@newdream.net>
Tue, 28 Oct 2008 20:59:32 +0000 (13:59 -0700)
src/mds/CInode.cc

index 19e4c1a4c0460acba572d90870671763e527bd1b..7eae9f17fb5c1a4f0de898de259f8dca5971474e 100644 (file)
@@ -509,7 +509,10 @@ void CInode::mark_dirty(version_t pv, LogSegment *ls) {
   _mark_dirty(ls);
 
   // mark dentry too
-  parent->mark_dirty(pv, ls);
+  if (projected_parent)
+    projected_parent->mark_dirty(pv, ls);
+  else
+    parent->mark_dirty(pv, ls);
 }