Skip to contentSkip to conversation

dm-raid1 breakage on 64bit

PATCH New Al Viro 1 participant 1 message Feb 13, 2008 Device mapper

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 dm-raid1 breakage on 64bit

test_and_set_bit() on address of uint32_t is a Bad Idea(tm)...

---

drivers/md/dm-raid1.c +1 -1
index edc057f..2928ef2 100644
@@ -124,7 +124,7 @@ enum dm_raid1_error {
 struct mirror {
 	struct mirror_set *ms;
 	atomic_t error_count;
-	uint32_t error_type;
+	unsigned long error_type;
 	struct dm_dev *dev;
 	sector_t offset;
 };