函数逻辑报告

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, long nr_pages, enum wb_reason reason)

返回类型:long

参数:

类型参数名称
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  加自旋锁
1813  如果链表为空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  自旋锁解锁
1817  blk_finish_plug( & plug)
1819  返回:nr_pagesnr_pages
调用者
名称描述
wb_workfnHandle writeback of dirty data for the device backed by this bdi. Also* reschedules periodically and does kupdated style flushing.