Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Do the filesystem syncing work

Proto:static int __sync_filesystem(struct super_block *sb, int wait)

Type:int

Parameter:

TypeParameterName
struct super_block *sb
intwait
33  If wait Then sync_inodes_sb - sync sb inode pages*@sb: the superblock* This function writes and waits on any dirty inode belonging to this* super_block.
35  Else writeback_inodes_sb - writeback dirty inodes from given super_block*@sb: the superblock*@reason: reason why some writeback work was initiated* Start writeback on some inodes on this super_block
38  If sync_fs Then sync_fs(sb, wait)
40  Return __sync_blockdev(s_bdev, wait)
Caller
NameDescribe
sync_filesystemWrite out and wait upon all dirty data associated with this* superblock. Filesystem data as well as the underlying block* device. Takes the superblock lock.