Skip to contentSkip to conversation

DM RAID: Remove duplicate code.

PATCH In review Jonathan Brassow 2 participants 3 messages Jun 26, 2012 – Jul 4, 2012 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 DM RAID: Remove duplicate code.

dm-raid: Remove duplicate code.

Code must have gotten pasted in twice somehow. Remove redundant chunk.

drivers/md/dm-raid.c +0 -5
Index: linux-upstream/drivers/md/dm-raid.c
===================================================================
@@ -526,11 +526,6 @@ static int parse_raid_params(struct raid
 	else
 		rs->ti->split_io = region_size;
 
-	if (rs->md.chunk_sectors)
-		rs->ti->split_io = rs->md.chunk_sectors;
-	else
-		rs->ti->split_io = region_size;
-
 	/* Assume there are no metadata devices until the drives are parsed */
 	rs->md.persistent = 0;
 	rs->md.external = 1;
#1 lore raw
Quoted 2 lines · Jon Brassow

dm-raid: Remove duplicate code.
Code must have gotten pasted in twice somehow. Remove redundant chunk.

I think that change is already in linux-next.

Alasdair

#2 lore raw
Quoted 5 lines · Alasdair G Kergon
Quoted 2 lines · Jon Brassow

dm-raid: Remove duplicate code.
Code must have gotten pasted in twice somehow. Remove redundant chunk.

I think that change is already in linux-next.

yup, in dm-support-non-power-of-two-target-max_io_len.patch.

Thanks,
brassow