Function report |
Source Code:block\blk-flush.c |
Create Date:2022-07-28 17:02:37 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:blk_flush_policy
Proto:static unsigned int blk_flush_policy(unsigned long fflags, struct request *rq)
Type:unsigned int
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned long | fflags | |
struct request * | rq |
101 | policy = 0 |
103 | If blk_rq_sectors(rq) Then policy |= REQ_FSEQ_DATA |
106 | If fflags & 1UL << Write back caching Then |
107 | If op and common flags & REQ_PREFLUSH Then policy |= REQ_FSEQ_PREFLUSH |
109 | If Not (fflags & 1UL << device supports FUA writes ) && op and common flags & REQ_FUA Then policy |= REQ_FSEQ_POSTFLUSH |
113 | Return policy |
Name | Describe |
---|---|
blk_insert_flush | lk_insert_flush - insert a new PREFLUSH/FUA request*@rq: request to insert* To be called from __elv_add_request() for %ELEVATOR_INSERT_FLUSH insertions.* or __blk_mq_run_hw_queue() to dispatch request.*@rq is being submitted |
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 |