commit | 5a2aa873059fec8b6385071d9c0802893a9b2f41 | [log] [tgz] |
---|---|---|
author | Martin K. Petersen <martin.petersen@oracle.com> | Fri Sep 26 19:20:00 2014 -0400 |
committer | Jens Axboe <axboe@fb.com> | Sat Sep 27 09:14:50 2014 -0600 |
tree | ec80bcd00c6b507d2a06564373ac6b01c634442e | |
parent | 3be91c4a3d090bd700bd6ee5bf457c1bbf189a4f [diff] |
block: Make protection interval calculation generic Now that the protection interval has been detached from the sector size we need to be able to handle sizes that are different from 4K and 512. Make the interval calculation generic. Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Jens Axboe <axboe@fb.com>