函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Wait for writeback on an inode to complete. Called with i_lock held.* Caller must make sure inode cannot go away when we drop i_lock.

函数原型:static void __inode_wait_for_writeback(struct inode *inode)__releases(inode->i_lock) __acquires(inode->i_lock)

返回类型:void

参数:

类型参数名称
struct inode *inode
1330  wqh等于bit_waitqueue( & Misc , __I_SYNC)
1331 Misc 按位与I_SYNC循环
1332  自旋锁解锁
1333  To allow interruptible waiting and asynchronous (i.e. nonblocking)* waiting, the actions of __wait_on_bit() and __wait_on_bit_lock() are* permitted return codes. Nonzero return codes halt waiting and return.
1335  加自旋锁
调用者
名称描述
inode_wait_for_writebackWait for writeback on an inode to complete. Caller must have inode pinned.
writeback_single_inodeWrite out an inode's dirty pages. Either the caller has an active reference* on the inode or the inode has I_WILL_FREE set.* This function is designed to be called for writing back one inode which* we go e