Blame SOURCES/device-mapper-persistent-data-cache_restore-v2-dirty-bitset.patch

72cacb
diff --git a/caching/metadata.cc b/caching/metadata.cc
bc1e83
index 91806f4..7b150be 100644
72cacb
--- a/caching/metadata.cc
72cacb
+++ b/caching/metadata.cc
bc1e83
@@ -128,6 +128,10 @@ void
72cacb
 metadata::commit_mappings()
72cacb
 {
72cacb
 	sb_.mapping_root = mappings_->get_root();
72cacb
+	if (sb_.version >= 2) {
72cacb
+		dirty_bits_->flush();
72cacb
+		sb_.dirty_root = dirty_bits_->get_root();
72cacb
+	}
72cacb
 }
72cacb
 
72cacb
 void