Commit 2d2063ce authored by Coywolf Qi Hunt's avatar Coywolf Qi Hunt Committed by Linus Torvalds
Browse files

[PATCH] md: remove unnecessary variable x in stripe_to_pdidx()

Signed-off-by: default avatarCoywolf Qi Hunt <>
Signed-off-by: default avatarNeil Brown <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 9b1d1dac
......@@ -1351,10 +1351,9 @@ static int page_is_zero(struct page *p)
static int stripe_to_pdidx(sector_t stripe, raid5_conf_t *conf, int disks)
int sectors_per_chunk = conf->chunk_size >> 9;
sector_t x = stripe;
int pd_idx, dd_idx;
int chunk_offset = sector_div(x, sectors_per_chunk);
stripe = x;
int chunk_offset = sector_div(stripe, sectors_per_chunk);
+ chunk_offset, disks, disks-1, &dd_idx, &pd_idx, conf);
return pd_idx;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment