Function report |
Source Code:block\blk-merge.c |
Create Date:2022-07-28 17:06:08 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:req_attempt_discard_merge
Proto:static bool req_attempt_discard_merge(struct request_queue *q, struct request *req, struct request *next)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| 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 | If segments >= queue_max_discard_segments(q) Then Go to no_merge |
| 636 | Return true |
| 637 | no_merge : |
| 638 | req_set_nomerge(q, req) |
| 639 | Return false |
| Name | Describe |
|---|---|
| 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. |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |