[PATCH 06/14] block: Make protection interval calculation generic

2014-08-28 Thread Martin K. Petersen
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.peter...@oracle.com Reviewed-by: Christoph Hellwig h...@lst.de

Re: [PATCH 06/14] block: Make protection interval calculation generic

2014-08-06 Thread Sagi Grimberg
On 7/25/2014 11:34 PM, Martin K. Petersen wrote: 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.peter...@oracle.com ---

Re: [PATCH 06/14] block: Make protection interval calculation generic

2014-07-26 Thread Christoph Hellwig
On Fri, Jul 25, 2014 at 04:34:21PM -0400, Martin K. Petersen wrote: + return sectors (ilog2(bi-interval) - 9); I was going to say this should be 'SECTOR_SHIFT', but that constant or variants of it are only defined locally in various subsystems.. Looks good, Reviewed-by: Christoph Hellwig

[PATCH 06/14] block: Make protection interval calculation generic

2014-07-25 Thread Martin K. Petersen
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.peter...@oracle.com --- block/bio-integrity.c | 6 +- 1 file changed,