Write root inode backtrace as soon as it is created;
Unwritten backtrace always caused scrub to fail for root inode.
Fixes: https://tracker.ceph.com/issues/50976
Signed-off-by: Milind Changire <mchangir@redhat.com>
(cherry picked from commit
7757f3ea3c1aebb71fd34454751634a822c021bd)
rootdir->commit(0, gather->new_sub());
root->store(gather->new_sub());
+ root->mark_dirty_parent(mds->mdlog->get_current_segment(), true);
+ root->store_backtrace(gather->new_sub());
}
void MDCache::create_mydir_hierarchy(MDSGather *gather)