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:Return the next wb_writeback_work struct that hasn't been processed yet.

Proto:static struct wb_writeback_work *get_next_work_item(struct bdi_writeback *wb)

Type:struct wb_writeback_work

Parameter:

TypeParameterName
struct bdi_writeback *wb
1938  struct wb_writeback_work * work = NULL
1940  spin_lock_bh( & protects work_list & dwork scheduling )
1941  If Not list_empty - tests whether a list is empty*@head: the list to test. Then
1942  work = list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(next, structwb_writeback_work, list)
1944  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
1946  spin_unlock_bh( & protects work_list & dwork scheduling )
1947  Return work
Caller
NameDescribe
wb_do_writebackRetrieve work items and do the writeback they describe