函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:de_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

函数原型:static bool inode_io_list_move_locked(struct inode *inode, struct bdi_writeback *wb, struct list_head *head)

返回类型:bool

参数:

类型参数名称
struct inode *inode
struct bdi_writeback *wb
struct list_head *head
123  assert_spin_locked( & protects the b_* lists )
125  链表项移动到头部
128  如果head不等于ime stamps are dirty 则返回:wb_io_lists_populated(wb)
131  wb_io_lists_depopulated(wb)
132  返回:false
调用者
名称描述
redirty_tailRedirty an inode: set its when-it-was dirtied timestamp and move it to the* furthest end of its superblock's dirty-inode list.* Before stamping the inode's ->dirtied_when, we check to see whether it is
requeue_ioqueue inode for re-scanning after bdi->b_io list is exhausted.
requeue_inodeFind proper writeback list for the inode depending on its current state and* possibly also change of its state while we were doing writeback. Here we* handle things such as livelock prevention or fairness of writeback among* inodes
__mark_inode_dirty__mark_inode_dirty - internal function*@inode: inode to mark*@flags: what kind of dirty (i