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

25ad42
 caching/metadata.cc | 4 ++++
25ad42
 1 file changed, 4 insertions(+)
25ad42
25ad42
diff --git a/caching/metadata.cc b/caching/metadata.cc
25ad42
index 7d8bfae..5457533 100644
25ad42
--- a/caching/metadata.cc
25ad42
+++ b/caching/metadata.cc
25ad42
@@ -124,6 +124,10 @@ void
25ad42
 metadata::commit_mappings()
25ad42
 {
25ad42
 	sb_.mapping_root = mappings_->get_root();
25ad42
+	if (sb_.version >= 2) {
25ad42
+		dirty_bits_->flush();
25ad42
+		sb_.dirty_root = dirty_bits_->get_root();
25ad42
+	}
25ad42
 }
25ad42
 
25ad42
 void