Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Find entry in block

Proto:static loff_t find_block_dqentry(struct qtree_mem_dqinfo *info, struct dquot *dquot, uint blk)

Type:loff_t

Parameter:

TypeParameterName
struct qtree_mem_dqinfo *info
struct dquot *dquot
uintblk
536  buf = getdqbuf(Space usable in block for quota data )
537  ret = 0
541  If Not buf Then Return -ENOMEM
543  ret = read_blk(info, blk, buf)
544  If ret < 0 Then
545  quota_error( superblock this applies to , "Can't read quota tree block %u", blk)
547  Go to out_buf
549  ddquot = buf + sizeof(structqt_disk_dqdbheader)
550  When i < Number of entries in one blocks cycle
551  If is_id(ddquot, dquot) Then Break
553  ddquot += Size of quota entry in quota file
555  If i == Number of entries in one blocks Then
556  quota_error( superblock this applies to , "Quota for id %u referenced but not present", from_kqid( & userns count is 1 for root user, 1 for init_uts_ns,* and 1 for... ?, ID this applies to (uid, gid, projid) ))
559  ret = -EIO
560  Go to out_buf
561  Else
562  ret = (blk << Block size of quota file ) + sizeof(structqt_disk_dqdbheader) + i * Size of quota entry in quota file
565  out_buf :
566  kfree(buf)
567  Return ret
Caller
NameDescribe
find_tree_dqentryFind entry for given id in the tree