函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Handle writeback of dirty data for the device backed by this bdi. Also* reschedules periodically and does kupdated style flushing.

函数原型:void wb_workfn(struct work_struct *work)

返回类型:void

参数:

类型参数名称
struct work_struct *work
2062  wb等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(to_delayed_work(work), structbdi_writeback, dwork)
2066  set_worker_desc - set description for the current work item*@fmt: printf-style format string*@...: arguments for the format string* This function can be called by a running work function to describe what* the work item is about
2067  flags或等于Allowed to write to swap
2069  如果此条件成立可能性大(为编译器优化)(!rrent_is_workqueue_rescuer - is %current workqueue rescuer?* Determine whether %current is a workqueue rescuer. Can be used from* work functions to determine whether it's being run off the rescuer task.* Return: %true if %current is a workqueue rescuer || !st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from)则
2077  循环
2080  当非链表为空循环
2081  否则
2087  pages_written等于writeback_inodes_wb(wb, 1024, WB_REASON_FORKER_THREAD)
2089  trace_writeback_pages_written(pages_written)
2092  如果非链表为空wb_wakeup(wb)
2094  否则如果wb_has_dirty_io(wb)且centiseconds This function is used when the first inode for this wb is marked dirty
2097  flags与等于Allowed to write to swap 的反