Skip to contentSkip to conversation

Fix apparent cut-and-paste error in super_90_validate

PATCH Applied Dave Jones 2 participants 2 messages Aug 20, 2013 MD RAID

lore
Share & tools
lore

Dave Jones

author
#0 lore raw

Setting a variable to itself probably wasn't the intention here.

drivers/md/md.c +1 -1
index 9f13e13..b9cb9e4 100644
@@ -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) {
Applied
#1 lore raw
Quoted 1 line · On Mon, 19 Aug 2013 22:26:32 -0400 Dave Jones <[email protected]> wrote:

Setting a variable to itself probably wasn't the intention here.

Probably not, no.

Applied, thanks.

NeilBrown

Quoted 16 lines
drivers/md/md.c +1 -1
index 9f13e13..b9cb9e4 100644
@@ -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) {