Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:void wb_workfn(struct work_struct *work)

Type:void

Parameter:

TypeParameterName
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  If Value is more likely to compile time(!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) Then
2077  Do
2080  When Not list_empty - tests whether a list is empty*@head: the list to test. cycle
2081  Else
2087  pages_written = writeback_inodes_wb(wb, 1024, WB_REASON_FORKER_THREAD)
2089  trace_writeback_pages_written(pages_written)
2092  If Not list_empty - tests whether a list is empty*@head: the list to test. Then wb_wakeup(wb)
2094  Else if wb_has_dirty_io(wb) && centiseconds Then This function is used when the first inode for this wb is marked dirty
2097  flags &= ~Allowed to write to swap