函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Return the next wb_writeback_work struct that hasn't been processed yet.

函数原型:static struct wb_writeback_work *get_next_work_item(struct bdi_writeback *wb)

返回类型:struct wb_writeback_work

参数:

类型参数名称
struct bdi_writeback *wb
1938  struct wb_writeback_work * work = NULL
1940  spin_lock_bh( & protects work_list & dwork scheduling )
1941  如果非链表为空
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.(链表后项, structwb_writeback_work, list)
1944  删除链表项并重新初始化
1946  spin_unlock_bh( & protects work_list & dwork scheduling )
1947  返回:work
调用者
名称描述
wb_do_writebackRetrieve work items and do the writeback they describe