commit | 8dd2cb7e880d2f77fba53b523c99133ad5054cfd | [log] [tgz] |
---|---|---|
author | Shaohua Li <shli@kernel.org> | Fri Dec 14 11:15:36 2012 +0800 |
committer | Jens Axboe <axboe@kernel.dk> | Fri Dec 14 20:46:04 2012 +0100 |
tree | ea51e89f8c8bf9ca8e888d68ecf6732a52e8e99d | |
parent | 75274551c81796b636c5acb0c2597dec7ec2e6c4 [diff] |
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 <neilb@suse.de> Signed-off-by: Shaohua Li <shli@fusionio.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>