From: Shaohua Li Date: Fri, 14 Dec 2012 03:15:36 +0000 (+0800) Subject: block: discard granularity might not be power of 2 X-Git-Tag: v3.8-rc1~81^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dd2cb7e880d2f77fba53b523c99133ad5054cfd;p=pandora-kernel.git block: discard granularity might not be power of 2 In MD raid case, discard granularity might not be power of 2, for example, a 4-disk raid5 has 3*chunk_size discard granularity. Correct the calculation for such cases. Reported-by: Neil Brown Signed-off-by: Shaohua Li Signed-off-by: Jens Axboe --- Reading git-diff-tree failed