md: Fix apparent cut-and-paste error in super_90_validate
authorDave Jones <davej@redhat.com>
Tue, 20 Aug 2013 02:26:32 +0000 (22:26 -0400)
committerNeilBrown <neilb@suse.de>
Tue, 27 Aug 2013 06:06:17 +0000 (16:06 +1000)
Setting a variable to itself probably wasn't the intention here.

Signed-off-by: Dave Jones <davej@fedoraproject.org>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c

index 16b0822fa24a8d1990deb11bf454628922ebec5e..a2678d882151aa751123eb3203b7098e93fc431c 100644 (file)
@@ -1180,7 +1180,7 @@ static int super_90_validate(struct mddev *mddev, struct md_rdev *rdev)
                        mddev->bitmap_info.offset =
                                mddev->bitmap_info.default_offset;
                        mddev->bitmap_info.space =
-                               mddev->bitmap_info.space;
+                               mddev->bitmap_info.default_space;
                }
 
        } else if (mddev->pers == NULL) {