Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ly try to merge bvecs into one sg if they are from two bios

Proto:static inline bool __blk_segment_map_sg_merge(struct request_queue *q, struct bio_vec *bvec, struct bio_vec *bvprv, struct scatterlist **sg)

Type:bool

Parameter:

TypeParameterName
struct request_queue *q
struct bio_vec *bvec
struct bio_vec *bvprv
struct scatterlist **sg
466  nbytes = bv_len
468  If Not sg Then Return false
471  If length + nbytes > queue_max_segment_size(q) Then Return false
474  If Not biovec_phys_mergeable(q, bvprv, bvec) Then Return false
477  length += nbytes
479  Return true
Caller
NameDescribe
__blk_bios_map_sg