函数逻辑报告

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

函数名称:__writeback_inodes_wb

函数原型:static long __writeback_inodes_wb(struct bdi_writeback *wb, struct wb_writeback_work *work)

返回类型:long

参数:

类型参数名称
struct bdi_writeback *wb
struct wb_writeback_work *work
1769  start_time等于jiffies
1770  wrote等于0
1772  当非链表为空循环
1773  inode等于wb_inode(链表前项)
1774  sb等于i_sb
1783  继续下一循环
1785  wrote加等于Write a portion of b_io inodes which belong to @sb.* Return the number of pages and/or inodes written.* NOTE! This is called with wb->list_lock held, and will* unlock and relock that for each inode it ends up doing* IO for.
1786  lease a read lock
1789  如果wrote
1792  如果nr_pages小于等于0则退出
1797  返回:wrote
调用者
名称描述
writeback_inodes_wb
wb_writebackExplicit flushing or periodic writeback of "old" data