Loading include/linux/bio.h +8 −0 Original line number Diff line number Diff line Loading @@ -445,6 +445,14 @@ static inline char *__bio_kmap_irq(struct bio *bio, unsigned short idx, __bio_kmap_irq((bio), (bio)->bi_idx, (flags)) #define bio_kunmap_irq(buf,flags) __bio_kunmap_irq(buf, flags) /* * Check whether this bio carries any data or not. A NULL bio is allowed. */ static inline int bio_has_data(struct bio *bio) { return bio && bio->bi_io_vec != NULL; } #if defined(CONFIG_BLK_DEV_INTEGRITY) #define bip_vec_idx(bip, idx) (&(bip->bip_vec[(idx)])) Loading Loading
include/linux/bio.h +8 −0 Original line number Diff line number Diff line Loading @@ -445,6 +445,14 @@ static inline char *__bio_kmap_irq(struct bio *bio, unsigned short idx, __bio_kmap_irq((bio), (bio)->bi_idx, (flags)) #define bio_kunmap_irq(buf,flags) __bio_kunmap_irq(buf, flags) /* * Check whether this bio carries any data or not. A NULL bio is allowed. */ static inline int bio_has_data(struct bio *bio) { return bio && bio->bi_io_vec != NULL; } #if defined(CONFIG_BLK_DEV_INTEGRITY) #define bip_vec_idx(bip, idx) (&(bip->bip_vec[(idx)])) Loading