Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bio_to_wbt_flags

Proto:static enum wbt_flags bio_to_wbt_flags(struct rq_wb *rwb, struct bio *bio)

Type:enum wbt_flags

Parameter:

TypeParameterName
struct rq_wb *rwb
struct bio *bio
549  flags = 0
551  If Not rwb_enabled(rwb) Then Return 0
554  If bio_op(bio) == read sectors from the device Then
555  flags = read
556  Else if wbt_should_throttle(rwb, bio) Then
557  If current_is_kswapd() Then flags |= write, from kswapd
559  If bio_op(bio) == REQ_OP_DISCARD Then flags |= discard
561  flags |= write, tracked for throttling
563  Return flags
Caller
NameDescribe
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