block: use symbolic constants for t10_pi type
authorMax Gurtovoy <maxg@mellanox.com>
Mon, 16 Sep 2019 15:44:28 +0000 (18:44 +0300)
committerJens Axboe <axboe@kernel.dk>
Wed, 18 Sep 2019 02:03:49 +0000 (20:03 -0600)
commit5eaed68dd38c14907be2ce5a45c73a5f2acb75f4
tree3d993390f50abe532c3858a7cb04596c8f7a0d1d
parent7ad67ca5534ee7c958559c4ad610f05c4578e361
block: use symbolic constants for t10_pi type

Replace all hard-coded values with T10_PI_TYPES to make the code more
readable.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/t10-pi.c