函数逻辑报告

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

函数名称:wb_check_old_data_flush

函数原型:static long wb_check_old_data_flush(struct bdi_writeback *wb)

返回类型:long

参数:

类型参数名称
struct bdi_writeback *wb
1976  如果非centiseconds 则返回:0
1979  expired等于last old data flush msecs_to_jiffies: - convert milliseconds to jiffies*@m: time in milliseconds* conversion is done as follows:* - negative values mean 'infinite timeout' (MAX_JIFFY_OFFSET)* - 'too large' values [that would result in larger than
1981  如果time_before(jiffies, expired)则返回:0
1984  last old data flush 等于jiffies
1985  nr_pages等于Add in the number of potentially dirty inodes, because each inode* write can dirty pagecache in the underlying blockdev.
1987  如果nr_pages
1988  struct wb_writeback_work work = {nr_pages = nr_pages, sync_mode = Don't wait on anything , for_kupdate = 1, range_cyclic = 1, why was writeback initiated? = WB_REASON_PERIODIC, }
1996  返回:Explicit flushing or periodic writeback of "old" data
1999  返回:0
调用者
名称描述
wb_do_writebackRetrieve work items and do the writeback they describe