Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
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 |
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 |
563 | Return flags |
Name | Describe |
---|---|
wbt_cleanup | |
wbt_wait | Returns 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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |