Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:v1_commit_dqblk

Proto:static int v1_commit_dqblk(struct dquot *dquot)

Type:int

Parameter:

TypeParameterName
struct dquot *dquot
84  type = USRQUOTA (uid) or GRPQUOTA (gid) or PRJQUOTA (projid)
88  v1_mem2disk_dqblk( & dqblk, & Diskquota usage [dq_dqb_lock] )
89  If type == lement used for user quotas && uid_eq(uid, GLOBAL_ROOT_UID) || type == lement used for group quotas && gid_eq(gid, GLOBAL_ROOT_GID) Then
91  ime limit for excessive disk use = Space grace time [dq_data_lock]
93  ime limit for excessive inode use = Inode grace time [dq_data_lock]
96  ret = 0
97  If inodes of quotafiles [type] Then ret = quota_write( superblock this applies to , type, (char * ) & dqblk, sizeof(structv1_disk_dqblk), v1_dqoff(from_kqid( & userns count is 1 for root user, 1 for init_uts_ns,* and 1 for... ?, ID this applies to (uid, gid, projid) )))
101  If ret != sizeof(structv1_disk_dqblk) Then
102  quota_error( superblock this applies to , "dquota write failed")
103  If ret >= 0 Then ret = -EIO
105  Go to out
107  ret = 0
109  out :
110  dqstats_inc(DQST_WRITES)
112  Return ret