This mirrors the logic in
cc8f5ac47c77d1e336e16d8deb024d507e0e8c59. Make
the renamed inode first match the destdn to avoid problems down the line.
Do this after we've (potentially) cowed the inode in the journal_cow_dentry
on srcdn.
mdcache->journal_cow_dentry(mdr, metablob, srcdn, CEPH_NOSNAP, 0, srcdnl);
metablob->add_null_dentry(srcdn, true);
+ // make renamed inode first track the dn
+ if (srcdnl->is_primary() && destdn->is_auth())
+ srcdnl->get_inode()->first = destdn->first;
+
// do inode updates in journal, even if we aren't auth (hmm, is this necessary?)
if (!silent) {
if (ji && !pi) {