Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\fs-writeback.c Create Date:2022-07-28 20:10:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:writeback_inodes_wb

Proto:static long writeback_inodes_wb(struct bdi_writeback *wb, long nr_pages, enum wb_reason reason)

Type:long

Parameter:

TypeParameterName
struct bdi_writeback *wb
longnr_pages
enum wb_reasonreason
1803  struct wb_writeback_work work = {nr_pages = nr_pages, sync_mode = Don't wait on anything , range_cyclic = 1, why was writeback initiated? = reason, }
1811  blk_start_plug( & plug)
1812  spin_lock( & protects the b_* lists )
1813  If list_empty - tests whether a list is empty*@head: the list to test. Then Queue all expired dirty inodes for io, eldest first.* Before* newly dirtied b_dirty b_io b_more_io* =============> gf edc BA* After* newly dirtied b_dirty b_io b_more_io* =============> g fBAedc* |* +--> dequeue for IO
1815  __writeback_inodes_wb(wb, & work)
1816  spin_unlock( & protects the b_* lists )
1817  blk_finish_plug( & plug)
1819  Return nr_pages - nr_pages
Caller
NameDescribe
wb_workfnHandle writeback of dirty data for the device backed by this bdi. Also* reschedules periodically and does kupdated style flushing.