函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Find entry in block

函数原型:static loff_t find_block_dqentry(struct qtree_mem_dqinfo *info, struct dquot *dquot, uint blk)

返回类型:loff_t

参数:

类型参数名称
struct qtree_mem_dqinfo *info
struct dquot *dquot
uintblk
536  buf等于getdqbuf(Space usable in block for quota data )
537  ret等于0
541  如果非buf则返回:负ENOMEM
543  ret等于read_blk(info, blk, buf)
544  如果ret小于0则
545  quota_error( superblock this applies to , "Can't read quota tree block %u", blk)
547  转到:out_buf
549  ddquot等于bufsizeof(structqt_disk_dqdbheader)
550 i小于Number of entries in one blocks 循环
551  如果is_id(ddquot, dquot)则退出
553  ddquot加等于Size of quota entry in quota file
555  如果i恒等于Number of entries in one blocks
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  转到:out_buf
561  否则
562  ret等于blk左移Block size of quota file 位的值加sizeof(structqt_disk_dqdbheader)加iSize of quota entry in quota file
565  out_buf :
566  释放内存
567  返回:ret
调用者
名称描述
find_tree_dqentryFind entry for given id in the tree