函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Write all dquot structures to disk and make them visible from userspace

函数原型:int dquot_quota_sync(struct super_block *sb, int type)

返回类型:int

参数:

类型参数名称
struct super_block *sb
inttype
681  dqopt等于sb_dqopt(sb)
685  ret等于Write all dquot structures to quota files
686  如果ret则返回:ret
688  如果 Flags for diskquotas on this device 按位与DQUOT_QUOTA_SYS_FILE则返回:0
694  如果sync_fssync_fs(sb, 1)
696  Write out and wait upon all the dirty data associated with a block* device via its mapping. Does not take the superblock lock.
702 cnt小于MAXQUOTAS循环
703  如果type不等于负1且cnt不等于type则继续下一循环
705  如果非sb_has_quota_active(sb, cnt)则继续下一循环
707  inode_lock( inodes of quotafiles [cnt])
708  runcate_inode_pages - truncate *all* the pages from an offset*@mapping: mapping to truncate*@lstart: offset from which to truncate* Called under (and serialised by) inode->i_mutex.* Note: When this function returns, there can be a page in the process of
709  inode_unlock( inodes of quotafiles [cnt])
712  返回:0