Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Write all dquot structures to disk and make them visible from userspace

Proto:int dquot_quota_sync(struct super_block *sb, int type)

Type:int

Parameter:

TypeParameterName
struct super_block *sb
inttype
681  dqopt = sb_dqopt(sb)
685  ret = Write all dquot structures to quota files
686  If ret Then Return ret
688  If Flags for diskquotas on this device & DQUOT_QUOTA_SYS_FILE Then Return 0
694  If sync_fs Then sync_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  When cnt < MAXQUOTAS cycle
703  If type != -1 && cnt != type Then Continue
705  If Not sb_has_quota_active(sb, cnt) Then Continue
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  Return 0