Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

Name:blk_flush_policy

Proto:static unsigned int blk_flush_policy(unsigned long fflags, struct request *rq)

Type:unsigned int

Parameter:

TypeParameterName
unsigned longfflags
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
Caller
NameDescribe
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