Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-wbt.c Create Date:2022-07-28 18:07:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get_limit

Proto:static inline unsigned int get_limit(struct rq_wb *rwb, unsigned long rw)

Type:unsigned int

Parameter:

TypeParameterName
struct rq_wb *rwb
unsigned longrw
466  If Not rwb_enabled(rwb) Then Return UINT_MAX
469  If (rw & REQ_OP_MASK) == REQ_OP_DISCARD Then Return background writeback
480  If rw & REQ_HIPRIO || If a task was rate throttled in balance_dirty_pages() within the last* second or so, use that to indicate a higher cleaning rate. || current_is_kswapd() Then limit = max_depth
482  Else if rw & REQ_BACKGROUND || close_io(rwb) Then
487  limit = background writeback
488  Else limit = normal writeback
491  Return limit
Caller
NameDescribe
wbt_inflight_cb