Function report |
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 activity | Download SCCT | Chinese |
Name:v1_commit_dqblk
Proto:static int v1_commit_dqblk(struct dquot *dquot)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct dquot * | dquot |
| 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 |
| 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") |
| 105 | Go to out |
| 107 | ret = 0 |
| 109 | out : |
| 110 | dqstats_inc(DQST_WRITES) |
| 112 | Return ret |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |