md: fix some (more) errors with bitmaps on devices larger than 2TB.
authorNeilBrown <neilb@suse.de>
Thu, 7 May 2009 02:49:06 +0000 (12:49 +1000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 20 May 2009 05:20:05 +0000 (22:20 -0700)
commit db305e507d554430a69ede901a6308e6ecb72349 upstream.

If a write intent bitmap covers more than 2TB, we sometimes work with
values beyond 32bit, so these need to be sector_t.  This patches
add the required casts to some unsigned longs that are being shifted
up.

This will affect any raid10 larger than 2TB, or any raid1/4/5/6 with
member devices that are larger than 2TB.

Signed-off-by: NeilBrown <neilb@suse.de>
Reported-by: "Mario 'BitKoenig' Holbe" <Mario.Holbe@TU-Ilmenau.DE>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No differences found