/* Description: Determines whether bio_integrity_prep() can be called on this bio or not. bio data direction and target device must be set prior to calling. The functions honors the write_generate and read_verify flags in sysfs.  */
int bio_integrity_enabled(struct bio *bio)
/* Description: Determines whether bio_integrity_prep() can be called on this bio or not. bio data direction and target device must be set prior to calling. The functions honors the write_generate and read_verify flags in sysfs.  */
int bio_integrity_enabled(struct bio *bio)
{
	if (bio_integrity(bio))
		return 0;
	return bdev_integrity_enabled(bio->bi_bdev, bio_data_dir(bio));
}