/** * bio_integrity_intervals - Return number of integrity intervals for a bio * @bi: blk_integrity profile for device * @sectors: Size of the bio in 512-byte sectors * * Description: The block layer calculates everything in 512 byte * sectors but integrity metadata is done in terms of the data integrity * interval size of the storage device. Convert the block layer sectors * to the appropriate number of integrity intervals.
*/ staticinlineunsignedint bio_integrity_intervals(struct blk_integrity *bi, unsignedint sectors)
{ return sectors >> (bi->interval_exp - 9);
}
staticinlinestruct bio_vec rq_integrity_vec(struct request *rq)
{ /* the optimizer will remove all calls to this function */ return (struct bio_vec){ };
} #endif/* CONFIG_BLK_DEV_INTEGRITY */
#endif/* _LINUX_BLK_INTEGRITY_H */
¤ Dauer der Verarbeitung: 0.15 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.