函数逻辑报告 |
Source Code:block\blk-merge.c |
Create Date:2022-07-27 18:41:26 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:req_attempt_discard_merge
函数原型:static bool req_attempt_discard_merge(struct request_queue *q, struct request *req, struct request *next)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct request_queue * | q | |
struct request * | req | |
struct request * | next |
627 | segments等于Number of discard segments (or ranges) the driver needs to fill in.* Each discard bio merged into a request is counted as one segment. |
629 | 如果segments大于等于queue_max_discard_segments(q)则转到:no_merge |
636 | 返回:true |
637 | no_merge : |
638 | req_set_nomerge(q, req) |
639 | 返回:false |
名称 | 描述 |
---|---|
attempt_merge | For non-mq, this has to be called with the request spinlock acquired.* For mq with scheduling, the appropriate queue wide lock should be held. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |