Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-integrity.c Create Date:2022-07-28 18:03:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:blk_integrity_merge_bio

Proto:bool blk_integrity_merge_bio(struct request_queue *q, struct request *req, struct bio *bio)

Type:bool

Parameter:

TypeParameterName
struct request_queue *q
struct request *req
struct bio *bio
192  next = request queue link
194  If (blk_integrity_rq(req) == 0 && bio_integrity(bio) == NULL) Then Return true
197  If (blk_integrity_rq(req) == 0 || bio_integrity(bio) == NULL) Then Return false
200  If control flags != control flags Then Return false
203  request queue link = NULL
204  nr_integrity_segs = lk_rq_count_integrity_sg - Count number of integrity scatterlist elements*@q: request queue*@bio: bio with integrity metadata attached* Description: Returns the number of elements required in a* scatterlist corresponding to the integrity metadata in a bio.
205  request queue link = next
207  If nr_integrity_segments + nr_integrity_segs > max_integrity_segments Then Return false
211  nr_integrity_segments += nr_integrity_segs
213  Return true
Caller
NameDescribe
blk_rq_merge_ok