函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\fs-writeback.c Create Date:2022-07-29 10:41:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Wakeup the flusher threads to start writeback of all currently dirty pages

函数原型:void wakeup_flusher_threads(enum wb_reason reason)

返回类型:void

参数:

类型参数名称
enum wb_reasonreason
2134  如果处于睡眠态避免死锁处理
2137  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
2138  遍历RCU(bdi, & bdi_list, bdi_list)
2139  Start writeback of `nr_pages' pages on this bdi. If `nr_pages' is zero,* write back the whole world.
2140  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
调用者
名称描述
shrink_inactive_listshrink_inactive_list() is a helper for shrink_node(). It returns the number* of reclaimed pages
ksys_syncSync everything. We start by waking flusher threads so that most of* writeback runs on all devices in parallel. Then we sync all inodes reliably* which effectively also waits for all flusher threads to finish doing* writeback
dirty_writeback_centisecs_handlersysctl handler for /proc/sys/vm/dirty_writeback_centisecs