Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\blkdev.h Create Date:2022-07-28 05:46:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:queue_max_discard_segments

Proto:static inline unsigned short queue_max_discard_segments(const struct request_queue *q)

Type:unsigned short

Parameter:

TypeParameterName
const struct request_queue *q
1286  Return max_discard_segments
Caller
NameDescribe
bio_attempt_discard_merge
queue_max_discard_segments_show
req_attempt_discard_merge
blk_discard_mergableTwo cases of handling DISCARD merge:* If max_discard_segments > 1, the driver takes every bio* as a range and send them to controller together. The ranges* needn't to be contiguous.* Otherwise, the bios/requests will be handled as same as