]> Git Repo - linux.git/commit
block: discard granularity might not be power of 2
authorShaohua Li <[email protected]>
Fri, 14 Dec 2012 03:15:36 +0000 (11:15 +0800)
committerJens Axboe <[email protected]>
Fri, 14 Dec 2012 19:46:04 +0000 (20:46 +0100)
commit8dd2cb7e880d2f77fba53b523c99133ad5054cfd
treeea51e89f8c8bf9ca8e888d68ecf6732a52e8e99d
parent75274551c81796b636c5acb0c2597dec7ec2e6c4
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 <[email protected]>
Signed-off-by: Shaohua Li <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
block/blk-lib.c
block/blk-settings.c
include/linux/blkdev.h
This page took 0.056931 seconds and 4 git commands to generate.