函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-flush.c Create Date:2022-07-27 18:37:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:blk_flush_policy

函数原型:static unsigned int blk_flush_policy(unsigned long fflags, struct request *rq)

返回类型:unsigned int

参数:

类型参数名称
unsigned longfflags
struct request *rq
101  policy等于0
103  如果blk_rq_sectors(rq)则policy或等于REQ_FSEQ_DATA
106  如果fflags按位与1UL左移Write back caching 位则
107  如果 op and common flags 按位与REQ_PREFLUSHpolicy或等于REQ_FSEQ_PREFLUSH
109  如果非fflags按位与1UL左移device supports FUA writes 位的值且 op and common flags 按位与REQ_FUApolicy或等于REQ_FSEQ_POSTFLUSH
113  返回:policy
调用者
名称描述
blk_insert_flushlk_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