函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\fs-writeback.c Create Date:2022-07-29 10:41:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:wb_io_lists_populated

函数原型:static bool wb_io_lists_populated(struct bdi_writeback *wb)

返回类型:bool

参数:

类型参数名称
struct bdi_writeback *wb
88  如果wb_has_dirty_io(wb)则
89  返回:false
90  否则
91  set_bit - Atomically set a bit in memory*@nr: the bit to set*@addr: the address to start counting from* This is a relaxed atomic operation (no implied memory barriers).* Note that @nr may be almost arbitrarily large; this function is not
92  WARN_ON_ONCE(!urther smoothed write bw, > 0 )
93  atomic_long_add(urther smoothed write bw, > 0 , & tot_write_bandwidth)
95  返回:true
调用者
名称描述
inode_io_list_move_lockedde_io_list_move_locked - move an inode onto a bdi_writeback IO list*@inode: inode to be moved*@wb: target bdi_writeback*@head: one of @wb->b_{dirty|io|more_io|dirty_time}* Move @inode->i_io_list to @list of @wb and set %WB_has_dirty_io
queue_ioQueue all expired dirty inodes for io, eldest first.* Before* newly dirtied b_dirty b_io b_more_io* =============> gf edc BA* After* newly dirtied b_dirty b_io b_more_io* =============> g fBAedc* |* +--> dequeue for IO