X-Git-Url: https://git.stricted.de/?a=blobdiff_plain;f=block%2Fblk.h;h=c79f30e1df52d8388c6c89505e97756f2f906098;hb=7ba1ba12eeef0aa7113beb16410ef8b7c748e18b;hp=ec898dd0c65c466ca2854ee987d7f178a83458d5;hpb=d6d48196961729b79509dcaeeb0f0fb4fbb47d29;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git diff --git a/block/blk.h b/block/blk.h index ec898dd0c65c..c79f30e1df52 100644 --- a/block/blk.h +++ b/block/blk.h @@ -10,7 +10,6 @@ extern struct kmem_cache *blk_requestq_cachep; extern struct kobj_type blk_queue_ktype; -void rq_init(struct request_queue *q, struct request *rq); void init_request_from_bio(struct request *req, struct bio *bio); void blk_rq_bio_prep(struct request_queue *q, struct request *rq, struct bio *bio); @@ -32,6 +31,8 @@ void blk_recalc_rq_sectors(struct request *rq, int nsect); void blk_queue_congestion_threshold(struct request_queue *q); +int blk_dev_init(void); + /* * Return the threshold (number of used requests) at which the queue is * considered to be congested. It include a little hysteresis to keep the @@ -50,4 +51,12 @@ static inline int queue_congestion_off_threshold(struct request_queue *q) return q->nr_congestion_off; } +#if defined(CONFIG_BLK_DEV_INTEGRITY) + +#define rq_for_each_integrity_segment(bvl, _rq, _iter) \ + __rq_for_each_bio(_iter.bio, _rq) \ + bip_for_each_vec(bvl, _iter.bio->bi_integrity, _iter.i) + +#endif /* BLK_DEV_INTEGRITY */ + #endif