函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Write out and wait upon all dirty data associated with this* superblock. Filesystem data as well as the underlying block* device. Takes the superblock lock.

函数原型:int sync_filesystem(struct super_block *sb)

返回类型:int

参数:

类型参数名称
struct super_block *sb
56  WARN_ON(!In all implementations count != 0 means locked )
61  如果sb_rdonly(sb)则返回:0
64  ret等于Do the filesystem syncing work
65  如果ret小于0则返回:ret
67  返回:Do the filesystem syncing work
调用者
名称描述
freeze_superze_super - lock the filesystem and force it into a consistent state*@sb: the super to lock* Syncs the super to make sure the filesystem is consistent and calls the fs's* freeze_fs. Subsequent calls to this without first thawing the fs will return* -EBUSY.
SYSCALL_DEFINE1sync a single super
fsync_bdevWrite out and wait upon all dirty data associated with this* device. Filesystem data as well as the underlying block* device. Takes the superblock lock.
try_to_lock_encrypted_files
dquot_load_quota_sb