函数逻辑报告 |
Source Code:block\bfq-iosched.c |
Create Date:2022-07-27 19:29:46 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Lifted from AS - choose which of rq1 and rq2 that is best served now.* We choose the request that is closer to the head right now. Distance* behind the head is penalized and only allowed to a certain extent.
函数原型:static struct request *bfq_choose_req(struct bfq_data *bfqd, struct request *rq1, struct request *rq2, sector_t last)
返回类型:struct request
参数:
类型 | 参数 | 名称 |
---|---|---|
struct bfq_data * | bfqd | |
struct request * | rq1 | |
struct request * | rq2 | |
sector_t | last |
448 | wrap等于0 |
455 | 如果rq_is_sync(rq1)且非rq_is_sync(rq2)则返回:rq1 |
457 | 否则如果rq_is_sync(rq2)且非rq_is_sync(rq1)则返回:rq2 |
459 | 如果 op and common flags 按位与REQ_META且非 op and common flags 按位与REQ_META的值则返回:rq1 |
461 | 否则如果 op and common flags 按位与REQ_META且非 op and common flags 按位与REQ_META的值则返回:rq2 |
470 | back_max等于 maximum allowed backward seek 乘2 |
481 | 否则wrap或等于quest 1 wraps |
488 | 否则wrap或等于quest 2 wraps |
509 | 当:wrap恒等于quest 2 wraps |
510 | 返回:rq1 |
511 | 当:wrap恒等于quest 1 wraps |
512 | 返回:rq2 |
513 | 当:wrap恒等于quest 1 wraps 按位或quest 2 wraps |
514 | 默认 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |