Skip to contentSkip to conversation

dm-log.c-2.4.26-rc1.patch

PATCH Heinz Mauelshagen 1 participant 1 message Feb 2, 2006 Device mapper

lore
Share & tools
lore
#0 lore raw

dm-log.c constructor doesn't pay attention to the NOSYNC flag while initializing the lc->sync_bits bitset.

Regards,
Heinz -- The LVM Guy --

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Red Hat GmbH
Consulting Development Engineer                   Am Sonnenhang 11
Cluster and Storage Development                   56242 Marienrachdorf
                                                  Germany
[email protected]                            +49 2626 141200
                                                       FAX 924446

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

drivers/md/dm-log.c renamed from drivers/md/dm-log.c.2.4.26-rc1 +1 -1
@@ -220,7 +220,7 @@
 		kfree(clog);
 		return -ENOMEM;
 	}
-	memset(clog->sync_bits, 0, bitset_size);
+	memset(lc->sync_bits, (sync == NOSYNC) ? -1 : 0, bitset_size);
 	clog->sync_count = (sync == NOSYNC ) ? region_count : 0;
 
 	clog->recovering_bits = vmalloc(bitset_size);