函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:v1_commit_dqblk

函数原型:static int v1_commit_dqblk(struct dquot *dquot)

返回类型:int

参数:

类型参数名称
struct dquot *dquot
84  type等于 USRQUOTA (uid) or GRPQUOTA (gid) or PRJQUOTA (projid)
88  v1_mem2disk_dqblk( & dqblk, & Diskquota usage [dq_dqb_lock] )
89  如果type恒等于lement used for user quotas uid_eq(uid, GLOBAL_ROOT_UID)或type恒等于lement used for group quotas gid_eq(gid, GLOBAL_ROOT_GID)则
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  如果 inodes of quotafiles [type]则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  如果ret不等于sizeof(structv1_disk_dqblk)则
102  quota_error( superblock this applies to , "dquota write failed")
103  如果ret大于等于0则ret等于负EIO
105  转到:out
107  ret等于0
109  out :
110  dqstats_inc(DQST_WRITES)
112  返回:ret