From: NeilBrown Date: Fri, 4 May 2012 07:03:18 +0000 (+1000) Subject: md/bitmap: fix calculation of 'chunks' - missing shift. X-Git-Tag: v3.4-rc6~16^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b16b1b6cd052acbacc0a15f934bca9b354534d48;p=pandora-kernel.git md/bitmap: fix calculation of 'chunks' - missing shift. commit 61a0d80c "md/bitmap: discard CHUNK_BLOCK_SHIFT macro" replaced CHUNK_BLOCK_RATIO() by the same text that was replacing CHUNK_BLOCK_SHIFT() - which is clearly wrong. The result is that 'chunks' is often too small by 1, which can sometimes result in a crash (not sure how). So use the correct replacement, and get rid of CHUNK_BLOCK_RATIO which is no longe used. Reported-by: Karl Newman Tested-by: Karl Newman Signed-off-by: NeilBrown --- Reading git-diff-tree failed