函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:wb_wait_for_completion - wait for completion of bdi_writeback_works*@done: target wb_completion* Wait for one or more work items issued to @bdi with their ->done field* set to @done, which should have been initialized with* DEFINE_WB_COMPLETION()

函数原型:void wb_wait_for_completion(struct wb_completion *done)

返回类型:void

参数:

类型参数名称
struct wb_completion *done
207  atomic_dec( & cnt)
208  wait_event - sleep until a condition gets true*@wq_head: the waitqueue to wait on*@condition: a C expression for the event to wait for* The process is put to sleep (TASK_UNINTERRUPTIBLE) until the*@condition evaluates to true( * waitq, !atomic_read( & cnt))
调用者
名称描述
__writeback_inodes_sb_nr
sync_inodes_sbsync_inodes_sb - sync sb inode pages*@sb: the superblock* This function writes and waits on any dirty inode belonging to this* super_block.