diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2008-10-01 07:38:39 (GMT) |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-10-09 06:56:21 (GMT) |
commit | ad7fce93147d32ae53d25d9ea1a8ba31a239deee (patch) | |
tree | baa8c613c1d34ec247f13b860c3bf7671b07f586 /include/linux/blkdev.h | |
parent | 0c032ab889e7b20b8a5a7d09313e4aca214a15f7 (diff) | |
download | linux-fsl-qoriq-ad7fce93147d32ae53d25d9ea1a8ba31a239deee.tar.xz |
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>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index bc693f5..00d340b0 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -1012,7 +1012,7 @@ struct blk_integrity { extern int blk_integrity_register(struct gendisk *, struct blk_integrity *); extern void blk_integrity_unregister(struct gendisk *); -extern int blk_integrity_compare(struct block_device *, struct block_device *); +extern int blk_integrity_compare(struct gendisk *, struct gendisk *); extern int blk_rq_map_integrity_sg(struct request *, struct scatterlist *); extern int blk_rq_count_integrity_sg(struct request *); |