函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:get_limit

函数原型:static inline unsigned int get_limit(struct rq_wb *rwb, unsigned long rw)

返回类型:unsigned int

参数:

类型参数名称
struct rq_wb *rwb
unsigned longrw
466  如果非rwb_enabled(rwb)则返回:UINT_MAX
469  如果rw按位与REQ_OP_MASK的值恒等于REQ_OP_DISCARD则返回: background writeback
480  如果rw按位与REQ_HIPRIOIf 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()则limit等于max_depth
482  否则如果rw按位与REQ_BACKGROUNDclose_io(rwb)则
487  limit等于 background writeback
488  否则limit等于 normal writeback
491  返回:limit
调用者
名称描述
wbt_inflight_cb