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_read_dqblk

Proto:static int v1_read_dqblk(struct dquot *dquot)

Type:int

Parameter:

TypeParameterName
struct dquot *dquot
58  type = USRQUOTA (uid) or GRPQUOTA (gid) or PRJQUOTA (projid)
60  dqopt = sb_dqopt( superblock this applies to )
62  If Not inodes of quotafiles [type] Then Return -EINVAL
66  memset( & dqblk, 0, sizeof(structv1_disk_dqblk))
67  quota_read( 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) )))
71  v1_disk2mem_dqblk( & Diskquota usage [dq_dqb_lock] , & dqblk)
72  If absolute limit on disk blks alloc == 0 && preferred limit on disk blks == 0 && absolute limit on allocated inodes == 0 && preferred inode limit == 0 Then Atomically set a bit in memory
77  dqstats_inc(DQST_READS)
79  Return 0