函数逻辑报告

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_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.

函数原型:int sync_inode_metadata(struct inode *inode, int wait)

返回类型:int

参数:

类型参数名称
struct inode *inode
intwait
2617  struct writeback_control wbc = {sync_mode = wait ? Wait on every mapping : Don't wait on anything , Write this many pages, and decrementthis for each page written = 0, }
2622  返回: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