Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bio_will_gap

Proto:static inline bool bio_will_gap(struct request_queue *q, struct request *prev_rq, struct bio *prev, struct bio *next)

Type:bool

Parameter:

TypeParameterName
struct request_queue *q
struct request *prev_rq
struct bio *prev
struct bio *next
20  If Not Check whether this bio carries any data or not. A NULL bio is allowed. || Not queue_virt_boundary(q) Then Return false
28  If prev_rq Then bio_get_first_bvec(bio, & pb)
30  Else bio_get_first_bvec(prev, & pb)
32  If bv_offset & queue_virt_boundary(q) Then Return true
44  bio_get_last_bvec(prev, & pb)
45  bio_get_first_bvec(next, & nb)
46  If biovec_phys_mergeable(q, & pb, & nb) Then Return false
48  Return __bvec_gap_to_prev(q, & pb, bv_offset)
Caller
NameDescribe
req_gap_back_merge
req_gap_front_merge