函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sync_inode - write an inode and its pages to disk.*@inode: the inode to sync*@wbc: controls the writeback mode* sync_inode() will write an inode and its pages to disk. It will also* correctly update the inode on its superblock's dirty inode lists and will

函数原型:int sync_inode(struct inode *inode, struct writeback_control *wbc)

返回类型:int

参数:

类型参数名称
struct inode *inode
struct writeback_control *wbc
2602  返回:Write 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
调用者
名称描述
sync_inode_metadatasync_inode_metadata - write an inode to disk*@inode: the inode to sync*@wait: wait for I/O to complete.* Write an inode to disk and adjust its dirty state after completion.* Note: only writes the actual inode, no associated data or other metadata.