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

72cacb
 caching/metadata.cc | 4 ++++
72cacb
 1 file changed, 4 insertions(+)
72cacb
72cacb
diff --git a/caching/metadata.cc b/caching/metadata.cc
72cacb
index 7d8bfae..5457533 100644
72cacb
--- a/caching/metadata.cc
72cacb
+++ b/caching/metadata.cc
72cacb
@@ -124,6 +124,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