函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bio_to_wbt_flags

函数原型:static enum wbt_flags bio_to_wbt_flags(struct rq_wb *rwb, struct bio *bio)

返回类型:enum wbt_flags

参数:

类型参数名称
struct rq_wb *rwb
struct bio *bio
549  flags等于0
551  如果非rwb_enabled(rwb)则返回:0
554  如果bio_op(bio)恒等于 read sectors from the device
555  flags等于 read
556  否则如果wbt_should_throttle(rwb, bio)则
557  如果current_is_kswapd()则flags或等于 write, from kswapd
559  如果bio_op(bio)恒等于REQ_OP_DISCARDflags或等于 discard
561  flags或等于 write, tracked for throttling
563  返回:flags
调用者
名称描述
wbt_cleanup
wbt_waitReturns true if the IO request should be accounted, false if not.* May sleep, if we have exceeded the writeback limits. Caller can pass* in an irq held spinlock, if it holds one when calling this function.* If we do sleep, we'll release and re-grab it.
wbt_track