The patch titled md: Calculate correct array size for raid10 in new offset mode has been removed from the -mm tree. Its filename is md-calculate-correct-array-size-for-raid10-in-new-offset-mode.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: md: Calculate correct array size for raid10 in new offset mode From: NeilBrown <neilb@xxxxxxx> The size calculation made assumtion which the new offset mode didn't follow. This gets the size right in all cases. Signed-off-by: Neil Brown <neilb@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/md/raid10.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff -puN drivers/md/raid10.c~md-calculate-correct-array-size-for-raid10-in-new-offset-mode drivers/md/raid10.c --- a/drivers/md/raid10.c~md-calculate-correct-array-size-for-raid10-in-new-offset-mode +++ a/drivers/md/raid10.c @@ -2060,7 +2060,13 @@ static int run(mddev_t *mddev) /* * Ok, everything is just fine now */ - size = conf->stride * conf->raid_disks; + if (conf->far_offset) { + size = mddev->size >> (conf->chunk_shift-1); + size *= conf->raid_disks; + size <<= conf->chunk_shift; + sector_div(size, conf->far_copies); + } else + size = conf->stride * conf->raid_disks; sector_div(size, conf->near_copies); mddev->array_size = size/2; mddev->resync_max_sectors = size; _ Patches currently in -mm which might be from neilb@xxxxxxx are origin.patch generic_file_buffered_write-deadlock-on-vectored-write.patch md-dm-reduce-stack-usage-with-stacked-block-devices.patch lockdep-annotate-sunrpc-code.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