The patch titled md: remove unnecessary variable x in stripe_to_pdidx() has been added to the -mm tree. Its filename is md-remove-unnecessary-variable-x-in-stripe_to_pdidx.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: md: remove unnecessary variable x in stripe_to_pdidx() From: Coywolf Qi Hunt <qiyong@xxxxxxxxxxxxx> Signed-off-by: Coywolf Qi Hunt <qiyong@xxxxxxxxxxxxx> Signed-off-by: Neil Brown <neilb@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/md/raid5.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff -puN drivers/md/raid5.c~md-remove-unnecessary-variable-x-in-stripe_to_pdidx drivers/md/raid5.c --- a/drivers/md/raid5.c~md-remove-unnecessary-variable-x-in-stripe_to_pdidx +++ a/drivers/md/raid5.c @@ -1350,10 +1350,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); + raid5_compute_sector(stripe*(disks-1)*sectors_per_chunk + chunk_offset, disks, disks-1, &dd_idx, &pd_idx, conf); return pd_idx; _ Patches currently in -mm which might be from qiyong@xxxxxxxxxxxxx are md-remove-unnecessary-variable-x-in-stripe_to_pdidx.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html