Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ll_back_merge_fn

Proto:int ll_back_merge_fn(struct request *req, struct bio *bio, unsigned int nr_segs)

Type:int

Parameter:

TypeParameterName
struct request *req
struct bio *bio
unsigned intnr_segs
594  If req_gap_back_merge(req, bio) Then Return 0
596  If blk_integrity_rq(req) && integrity_req_gap_back_merge(req, bio) Then Return 0
599  If blk_rq_sectors(req) + bio_sectors(bio) > blk_rq_get_max_sectors(req, lk_rq_pos() : the current sector* blk_rq_bytes() : bytes left in the entire request* blk_rq_cur_bytes() : bytes left in the current segment* blk_rq_err_bytes() : bytes left till the next error boundary* blk_rq_sectors() : sectors left in the entire ) Then
601  req_set_nomerge(q, req)
602  Return 0
605  Return ll_new_hw_segment(req, bio, nr_segs)
Caller
NameDescribe
blk_rq_append_bioAppend a bio to a passthrough request. Only works if the bio can be merged* into the request based on the driver constraints.