From: NeilBrown Date: Thu, 7 May 2009 02:49:06 +0000 (+1000) Subject: md: fix some (more) errors with bitmaps on devices larger than 2TB. X-Git-Tag: v2.6.27.24~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47a0d1852bafea509dcec4599d72e1b662223e72;p=pandora-kernel.git md: fix some (more) errors with bitmaps on devices larger than 2TB. 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 Reported-by: "Mario 'BitKoenig' Holbe" Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed