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:wb_check_old_data_flush

Proto:static long wb_check_old_data_flush(struct bdi_writeback *wb)

Type:long

Parameter:

TypeParameterName
struct bdi_writeback *wb
1976  If Not centiseconds Then Return 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  If time_before(jiffies, expired) Then Return 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  If nr_pages Then
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  Return Explicit flushing or periodic writeback of "old" data
1999  Return 0
Caller
NameDescribe
wb_do_writebackRetrieve work items and do the writeback they describe