]> git.baikalelectronics.ru Git - kernel.git/commit
block: Make protection interval calculation generic
authorMartin K. Petersen <martin.petersen@oracle.com>
Fri, 26 Sep 2014 23:20:00 +0000 (19:20 -0400)
committerJens Axboe <axboe@fb.com>
Sat, 27 Sep 2014 15:14:50 +0000 (09:14 -0600)
commit3add9d0759748df5e298b3015c4121cc921a8c34
treeec80bcd00c6b507d2a06564373ac6b01c634442e
parentae55deee595189ae4cc9587b4c169aeca45dd7b4
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>
block/bio-integrity.c