]> git.baikalelectronics.ru Git - kernel.git/commit
block: Switch blk_integrity_compare from bdev to gendisk
authorMartin K. Petersen <martin.petersen@oracle.com>
Wed, 1 Oct 2008 07:38:39 +0000 (03:38 -0400)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 9 Oct 2008 06:56:21 +0000 (08:56 +0200)
commitadcb4465a63e5418da552f7dec7d4ed29f65a8f4
treebaa8c613c1d34ec247f13b860c3bf7671b07f586
parentc55e15a1c34cabac16754ce35883763dbc049680
block: Switch blk_integrity_compare from bdev to gendisk

The DM and MD integrity support now depends on being able to use
gendisks instead of block_devices when comparing integrity profiles.
Change function parameters accordingly.

Also update comparison logic so that two NULL profiles are a valid
configuration.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-integrity.c
include/linux/blkdev.h