Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\fs-writeback.c Create Date:2022-07-28 20:10:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:int sync_inode_metadata(struct inode *inode, int wait)

Type:int

Parameter:

TypeParameterName
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  Return 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