dm-raid1 breakage on 64bit
authorAl Viro <viro@ZenIV.linux.org.uk>
Wed, 13 Feb 2008 03:53:00 +0000 (03:53 +0000)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 13 Feb 2008 16:16:34 +0000 (08:16 -0800)
test_and_set_bit() on address of uint32_t is a Bad Idea(tm)...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/dm-raid1.c

index edc057f5cdccf2b07dc09dcfe83fda5f37a811cb..2928ef228101e941ff3876b454601d59b938a1ac 100644 (file)
@@ -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;
 };